diff --git a/java-gke-multi-cloud/README.md b/java-gke-multi-cloud/README.md index 02337d62110e..9b6a7d71487e 100644 --- a/java-gke-multi-cloud/README.md +++ b/java-gke-multi-cloud/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-gke-multi-cloud - 0.4.0 + 0.6.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.4.0' +implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.6.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.4.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.6.0" ``` ## Authentication @@ -165,16 +165,16 @@ Java is a registered trademark of Oracle and/or its affiliates. [product-docs]: https://cloud.google.com/anthos [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gke-multi-cloud/latest/overview -[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-gke-multi-cloud/java7.svg -[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-gke-multi-cloud/java7.html -[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-gke-multi-cloud/java8.svg -[kokoro-badge-link-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-gke-multi-cloud/java8.html -[kokoro-badge-image-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-gke-multi-cloud/java8-osx.svg -[kokoro-badge-link-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-gke-multi-cloud/java8-osx.html -[kokoro-badge-image-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-gke-multi-cloud/java8-win.svg -[kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-gke-multi-cloud/java8-win.html -[kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-gke-multi-cloud/java11.svg -[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-gke-multi-cloud/java11.html +[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java7.svg +[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java7.html +[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8.svg +[kokoro-badge-link-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8.html +[kokoro-badge-image-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-osx.svg +[kokoro-badge-link-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-osx.html +[kokoro-badge-image-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-win.svg +[kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-win.html +[kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.svg +[kokoro-badge-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://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-gke-multi-cloud&core=gav @@ -186,9 +186,9 @@ Java is a registered trademark of Oracle and/or its affiliates. [create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects [cloud-sdk]: https://cloud.google.com/sdk/ [troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/main/troubleshooting/readme.md#troubleshooting -[contributing]: https://github.com/googleapis/java-gke-multi-cloud/blob/main/CONTRIBUTING.md -[code-of-conduct]: https://github.com/googleapis/java-gke-multi-cloud/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct -[license]: https://github.com/googleapis/java-gke-multi-cloud/blob/main/LICENSE +[contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md +[code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct +[license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE [enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing [enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=gkemulticloud.googleapis.com [libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersClient.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersClient.java new file mode 100644 index 000000000000..ea0effb9805b --- /dev/null +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersClient.java @@ -0,0 +1,1685 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.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.gkemulticloud.v1.stub.AttachedClustersStub; +import com.google.cloud.gkemulticloud.v1.stub.AttachedClustersStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: The AttachedClusters API provides a single centrally managed service to + * register and manage Anthos attached clusters that run on customer's owned infrastructure. + * + *

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 (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+ *   AttachedClusterName name =
+ *       AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]");
+ *   AttachedCluster response = attachedClustersClient.getAttachedCluster(name);
+ * }
+ * }
+ * + *

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

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

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 AttachedClustersSettings 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
+ * AttachedClustersSettings attachedClustersSettings =
+ *     AttachedClustersSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * AttachedClustersClient attachedClustersClient =
+ *     AttachedClustersClient.create(attachedClustersSettings);
+ * }
+ * + *

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
+ * AttachedClustersSettings attachedClustersSettings =
+ *     AttachedClustersSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * AttachedClustersClient attachedClustersClient =
+ *     AttachedClustersClient.create(attachedClustersSettings);
+ * }
+ * + *

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
+ * AttachedClustersSettings attachedClustersSettings =
+ *     AttachedClustersSettings.newHttpJsonBuilder().build();
+ * AttachedClustersClient attachedClustersClient =
+ *     AttachedClustersClient.create(attachedClustersSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class AttachedClustersClient implements BackgroundResource { + private final AttachedClustersSettings settings; + private final AttachedClustersStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of AttachedClustersClient with default settings. */ + public static final AttachedClustersClient create() throws IOException { + return create(AttachedClustersSettings.newBuilder().build()); + } + + /** + * Constructs an instance of AttachedClustersClient, 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 AttachedClustersClient create(AttachedClustersSettings settings) + throws IOException { + return new AttachedClustersClient(settings); + } + + /** + * Constructs an instance of AttachedClustersClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(AttachedClustersSettings). + */ + public static final AttachedClustersClient create(AttachedClustersStub stub) { + return new AttachedClustersClient(stub); + } + + /** + * Constructs an instance of AttachedClustersClient, 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 AttachedClustersClient(AttachedClustersSettings settings) throws IOException { + this.settings = settings; + this.stub = ((AttachedClustersStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected AttachedClustersClient(AttachedClustersStub 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 AttachedClustersSettings getSettings() { + return settings; + } + + public AttachedClustersStub 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. + /** + * Creates a new [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource on a + * given GCP project and region. + * + *

If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be described to track the status of + * the operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   AttachedCluster attachedCluster = AttachedCluster.newBuilder().build();
+   *   String attachedClusterId = "attachedClusterId865943409";
+   *   AttachedCluster response =
+   *       attachedClustersClient
+   *           .createAttachedClusterAsync(parent, attachedCluster, attachedClusterId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource will be created. + *

Location names are formatted as `projects/<project-id>/locations/<region>`. + *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more + * details on Google Cloud resource names. + * @param attachedCluster Required. The specification of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create. + * @param attachedClusterId Required. A client provided ID the resource. Must be unique within the + * parent resource. + *

The provided ID will be part of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource name formatted as + * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`. + *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createAttachedClusterAsync( + LocationName parent, AttachedCluster attachedCluster, String attachedClusterId) { + CreateAttachedClusterRequest request = + CreateAttachedClusterRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAttachedCluster(attachedCluster) + .setAttachedClusterId(attachedClusterId) + .build(); + return createAttachedClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource on a + * given GCP project and region. + * + *

If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be described to track the status of + * the operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   AttachedCluster attachedCluster = AttachedCluster.newBuilder().build();
+   *   String attachedClusterId = "attachedClusterId865943409";
+   *   AttachedCluster response =
+   *       attachedClustersClient
+   *           .createAttachedClusterAsync(parent, attachedCluster, attachedClusterId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource will be created. + *

Location names are formatted as `projects/<project-id>/locations/<region>`. + *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more + * details on Google Cloud resource names. + * @param attachedCluster Required. The specification of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create. + * @param attachedClusterId Required. A client provided ID the resource. Must be unique within the + * parent resource. + *

The provided ID will be part of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource name formatted as + * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`. + *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createAttachedClusterAsync( + String parent, AttachedCluster attachedCluster, String attachedClusterId) { + CreateAttachedClusterRequest request = + CreateAttachedClusterRequest.newBuilder() + .setParent(parent) + .setAttachedCluster(attachedCluster) + .setAttachedClusterId(attachedClusterId) + .build(); + return createAttachedClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource on a + * given GCP project and region. + * + *

If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be described to track the status of + * the operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   CreateAttachedClusterRequest request =
+   *       CreateAttachedClusterRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setAttachedCluster(AttachedCluster.newBuilder().build())
+   *           .setAttachedClusterId("attachedClusterId865943409")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   AttachedCluster response = attachedClustersClient.createAttachedClusterAsync(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 createAttachedClusterAsync( + CreateAttachedClusterRequest request) { + return createAttachedClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource on a + * given GCP project and region. + * + *

If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be described to track the status of + * the operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   CreateAttachedClusterRequest request =
+   *       CreateAttachedClusterRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setAttachedCluster(AttachedCluster.newBuilder().build())
+   *           .setAttachedClusterId("attachedClusterId865943409")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   OperationFuture future =
+   *       attachedClustersClient.createAttachedClusterOperationCallable().futureCall(request);
+   *   // Do something.
+   *   AttachedCluster response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createAttachedClusterOperationCallable() { + return stub.createAttachedClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource on a + * given GCP project and region. + * + *

If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be described to track the status of + * the operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   CreateAttachedClusterRequest request =
+   *       CreateAttachedClusterRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setAttachedCluster(AttachedCluster.newBuilder().build())
+   *           .setAttachedClusterId("attachedClusterId865943409")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   ApiFuture future =
+   *       attachedClustersClient.createAttachedClusterCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createAttachedClusterCallable() { + return stub.createAttachedClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   AttachedCluster attachedCluster = AttachedCluster.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   AttachedCluster response =
+   *       attachedClustersClient.updateAttachedClusterAsync(attachedCluster, updateMask).get();
+   * }
+   * }
+ * + * @param attachedCluster Required. The + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource to update. + * @param updateMask Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field can only include these fields from + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]: + *

* `description`. * `annotations`. * `platform_version`. * + * `authorization.admin_users`. * `logging_config.component_config.enable_components`. + * * `monitoring_config.managed_prometheus_config.enabled`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateAttachedClusterAsync( + AttachedCluster attachedCluster, FieldMask updateMask) { + UpdateAttachedClusterRequest request = + UpdateAttachedClusterRequest.newBuilder() + .setAttachedCluster(attachedCluster) + .setUpdateMask(updateMask) + .build(); + return updateAttachedClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   UpdateAttachedClusterRequest request =
+   *       UpdateAttachedClusterRequest.newBuilder()
+   *           .setAttachedCluster(AttachedCluster.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   AttachedCluster response = attachedClustersClient.updateAttachedClusterAsync(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 updateAttachedClusterAsync( + UpdateAttachedClusterRequest request) { + return updateAttachedClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   UpdateAttachedClusterRequest request =
+   *       UpdateAttachedClusterRequest.newBuilder()
+   *           .setAttachedCluster(AttachedCluster.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       attachedClustersClient.updateAttachedClusterOperationCallable().futureCall(request);
+   *   // Do something.
+   *   AttachedCluster response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateAttachedClusterOperationCallable() { + return stub.updateAttachedClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   UpdateAttachedClusterRequest request =
+   *       UpdateAttachedClusterRequest.newBuilder()
+   *           .setAttachedCluster(AttachedCluster.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       attachedClustersClient.updateAttachedClusterCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateAttachedClusterCallable() { + return stub.updateAttachedClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports creates a new [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * by importing an existing Fleet Membership resource. + * + *

Attached Clusters created before the introduction of the Anthos Multi-Cloud API can be + * imported through this method. + * + *

If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be described to track the status of + * the operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String fleetMembership = "fleetMembership-665479228";
+   *   AttachedCluster response =
+   *       attachedClustersClient.importAttachedClusterAsync(parent, fleetMembership).get();
+   * }
+   * }
+ * + * @param parent Required. The parent location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource will be created. + *

Location names are formatted as `projects/<project-id>/locations/<region>`. + *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more + * details on Google Cloud resource names. + * @param fleetMembership Required. The name of the fleet membership resource to import. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture importAttachedClusterAsync( + LocationName parent, String fleetMembership) { + ImportAttachedClusterRequest request = + ImportAttachedClusterRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFleetMembership(fleetMembership) + .build(); + return importAttachedClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports creates a new [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * by importing an existing Fleet Membership resource. + * + *

Attached Clusters created before the introduction of the Anthos Multi-Cloud API can be + * imported through this method. + * + *

If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be described to track the status of + * the operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String fleetMembership = "fleetMembership-665479228";
+   *   AttachedCluster response =
+   *       attachedClustersClient.importAttachedClusterAsync(parent, fleetMembership).get();
+   * }
+   * }
+ * + * @param parent Required. The parent location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource will be created. + *

Location names are formatted as `projects/<project-id>/locations/<region>`. + *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more + * details on Google Cloud resource names. + * @param fleetMembership Required. The name of the fleet membership resource to import. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture importAttachedClusterAsync( + String parent, String fleetMembership) { + ImportAttachedClusterRequest request = + ImportAttachedClusterRequest.newBuilder() + .setParent(parent) + .setFleetMembership(fleetMembership) + .build(); + return importAttachedClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports creates a new [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * by importing an existing Fleet Membership resource. + * + *

Attached Clusters created before the introduction of the Anthos Multi-Cloud API can be + * imported through this method. + * + *

If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be described to track the status of + * the operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   ImportAttachedClusterRequest request =
+   *       ImportAttachedClusterRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setValidateOnly(true)
+   *           .setFleetMembership("fleetMembership-665479228")
+   *           .setPlatformVersion("platformVersion1848800485")
+   *           .setDistribution("distribution-1580708220")
+   *           .build();
+   *   AttachedCluster response = attachedClustersClient.importAttachedClusterAsync(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 importAttachedClusterAsync( + ImportAttachedClusterRequest request) { + return importAttachedClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports creates a new [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * by importing an existing Fleet Membership resource. + * + *

Attached Clusters created before the introduction of the Anthos Multi-Cloud API can be + * imported through this method. + * + *

If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be described to track the status of + * the operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   ImportAttachedClusterRequest request =
+   *       ImportAttachedClusterRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setValidateOnly(true)
+   *           .setFleetMembership("fleetMembership-665479228")
+   *           .setPlatformVersion("platformVersion1848800485")
+   *           .setDistribution("distribution-1580708220")
+   *           .build();
+   *   OperationFuture future =
+   *       attachedClustersClient.importAttachedClusterOperationCallable().futureCall(request);
+   *   // Do something.
+   *   AttachedCluster response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + importAttachedClusterOperationCallable() { + return stub.importAttachedClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports creates a new [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + * by importing an existing Fleet Membership resource. + * + *

Attached Clusters created before the introduction of the Anthos Multi-Cloud API can be + * imported through this method. + * + *

If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be described to track the status of + * the operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   ImportAttachedClusterRequest request =
+   *       ImportAttachedClusterRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setValidateOnly(true)
+   *           .setFleetMembership("fleetMembership-665479228")
+   *           .setPlatformVersion("platformVersion1848800485")
+   *           .setDistribution("distribution-1580708220")
+   *           .build();
+   *   ApiFuture future =
+   *       attachedClustersClient.importAttachedClusterCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + importAttachedClusterCallable() { + return stub.importAttachedClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Describes a specific [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   AttachedClusterName name =
+   *       AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]");
+   *   AttachedCluster response = attachedClustersClient.getAttachedCluster(name);
+   * }
+   * }
+ * + * @param name Required. The name of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource to describe. + *

`AttachedCluster` names are formatted as + * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`. + *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more + * details on GCP resource names. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AttachedCluster getAttachedCluster(AttachedClusterName name) { + GetAttachedClusterRequest request = + GetAttachedClusterRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getAttachedCluster(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Describes a specific [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   String name =
+   *       AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]").toString();
+   *   AttachedCluster response = attachedClustersClient.getAttachedCluster(name);
+   * }
+   * }
+ * + * @param name Required. The name of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource to describe. + *

`AttachedCluster` names are formatted as + * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`. + *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more + * details on GCP resource names. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AttachedCluster getAttachedCluster(String name) { + GetAttachedClusterRequest request = + GetAttachedClusterRequest.newBuilder().setName(name).build(); + return getAttachedCluster(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Describes a specific [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   GetAttachedClusterRequest request =
+   *       GetAttachedClusterRequest.newBuilder()
+   *           .setName(
+   *               AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]")
+   *                   .toString())
+   *           .build();
+   *   AttachedCluster response = attachedClustersClient.getAttachedCluster(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 AttachedCluster getAttachedCluster(GetAttachedClusterRequest request) { + return getAttachedClusterCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Describes a specific [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   GetAttachedClusterRequest request =
+   *       GetAttachedClusterRequest.newBuilder()
+   *           .setName(
+   *               AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       attachedClustersClient.getAttachedClusterCallable().futureCall(request);
+   *   // Do something.
+   *   AttachedCluster response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getAttachedClusterCallable() { + return stub.getAttachedClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources on a given + * Google Cloud project and region. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (AttachedCluster element :
+   *       attachedClustersClient.listAttachedClusters(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent location which owns this collection of + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources. + *

Location names are formatted as `projects/<project-id>/locations/<region>`. + *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more + * details on GCP resource names. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAttachedClustersPagedResponse listAttachedClusters(LocationName parent) { + ListAttachedClustersRequest request = + ListAttachedClustersRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAttachedClusters(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources on a given + * Google Cloud project and region. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (AttachedCluster element :
+   *       attachedClustersClient.listAttachedClusters(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent location which owns this collection of + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources. + *

Location names are formatted as `projects/<project-id>/locations/<region>`. + *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more + * details on GCP resource names. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAttachedClustersPagedResponse listAttachedClusters(String parent) { + ListAttachedClustersRequest request = + ListAttachedClustersRequest.newBuilder().setParent(parent).build(); + return listAttachedClusters(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources on a given + * Google Cloud project and region. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   ListAttachedClustersRequest request =
+   *       ListAttachedClustersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (AttachedCluster element :
+   *       attachedClustersClient.listAttachedClusters(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 ListAttachedClustersPagedResponse listAttachedClusters( + ListAttachedClustersRequest request) { + return listAttachedClustersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources on a given + * Google Cloud project and region. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   ListAttachedClustersRequest request =
+   *       ListAttachedClustersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       attachedClustersClient.listAttachedClustersPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (AttachedCluster element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAttachedClustersPagedCallable() { + return stub.listAttachedClustersPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources on a given + * Google Cloud project and region. + * + *

Sample code: + * + *

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

If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be described to track the status of + * the operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   AttachedClusterName name =
+   *       AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]");
+   *   attachedClustersClient.deleteAttachedClusterAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to delete. + *

`AttachedCluster` names are formatted as + * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`. + *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more + * details on GCP resource names. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAttachedClusterAsync( + AttachedClusterName name) { + DeleteAttachedClusterRequest request = + DeleteAttachedClusterRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteAttachedClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource. + * + *

If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be described to track the status of + * the operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   String name =
+   *       AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]").toString();
+   *   attachedClustersClient.deleteAttachedClusterAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to delete. + *

`AttachedCluster` names are formatted as + * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`. + *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more + * details on GCP resource names. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAttachedClusterAsync(String name) { + DeleteAttachedClusterRequest request = + DeleteAttachedClusterRequest.newBuilder().setName(name).build(); + return deleteAttachedClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource. + * + *

If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be described to track the status of + * the operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   DeleteAttachedClusterRequest request =
+   *       DeleteAttachedClusterRequest.newBuilder()
+   *           .setName(
+   *               AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]")
+   *                   .toString())
+   *           .setValidateOnly(true)
+   *           .setAllowMissing(true)
+   *           .setIgnoreErrors(true)
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   attachedClustersClient.deleteAttachedClusterAsync(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 deleteAttachedClusterAsync( + DeleteAttachedClusterRequest request) { + return deleteAttachedClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource. + * + *

If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be described to track the status of + * the operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   DeleteAttachedClusterRequest request =
+   *       DeleteAttachedClusterRequest.newBuilder()
+   *           .setName(
+   *               AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]")
+   *                   .toString())
+   *           .setValidateOnly(true)
+   *           .setAllowMissing(true)
+   *           .setIgnoreErrors(true)
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   OperationFuture future =
+   *       attachedClustersClient.deleteAttachedClusterOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteAttachedClusterOperationCallable() { + return stub.deleteAttachedClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource. + * + *

If successful, the response contains a newly created + * [Operation][google.longrunning.Operation] resource that can be described to track the status of + * the operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   DeleteAttachedClusterRequest request =
+   *       DeleteAttachedClusterRequest.newBuilder()
+   *           .setName(
+   *               AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]")
+   *                   .toString())
+   *           .setValidateOnly(true)
+   *           .setAllowMissing(true)
+   *           .setIgnoreErrors(true)
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   ApiFuture future =
+   *       attachedClustersClient.deleteAttachedClusterCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteAttachedClusterCallable() { + return stub.deleteAttachedClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns information, such as supported Kubernetes versions, on a given Google Cloud 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 (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   AttachedServerConfigName name = AttachedServerConfigName.of("[PROJECT]", "[LOCATION]");
+   *   AttachedServerConfig response = attachedClustersClient.getAttachedServerConfig(name);
+   * }
+   * }
+ * + * @param name Required. The name of the + * [AttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedServerConfig] resource to + * describe. + *

`AttachedServerConfig` names are formatted as + * `projects/<project-id>/locations/<region>/attachedServerConfig`. + *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more + * details on Google Cloud resource names. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AttachedServerConfig getAttachedServerConfig(AttachedServerConfigName name) { + GetAttachedServerConfigRequest request = + GetAttachedServerConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getAttachedServerConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns information, such as supported Kubernetes versions, on a given Google Cloud 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 (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   String name = AttachedServerConfigName.of("[PROJECT]", "[LOCATION]").toString();
+   *   AttachedServerConfig response = attachedClustersClient.getAttachedServerConfig(name);
+   * }
+   * }
+ * + * @param name Required. The name of the + * [AttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedServerConfig] resource to + * describe. + *

`AttachedServerConfig` names are formatted as + * `projects/<project-id>/locations/<region>/attachedServerConfig`. + *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more + * details on Google Cloud resource names. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AttachedServerConfig getAttachedServerConfig(String name) { + GetAttachedServerConfigRequest request = + GetAttachedServerConfigRequest.newBuilder().setName(name).build(); + return getAttachedServerConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns information, such as supported Kubernetes versions, on a given Google Cloud 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 (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   GetAttachedServerConfigRequest request =
+   *       GetAttachedServerConfigRequest.newBuilder()
+   *           .setName(AttachedServerConfigName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .build();
+   *   AttachedServerConfig response = attachedClustersClient.getAttachedServerConfig(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 AttachedServerConfig getAttachedServerConfig( + GetAttachedServerConfigRequest request) { + return getAttachedServerConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns information, such as supported Kubernetes versions, on a given Google Cloud 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 (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   GetAttachedServerConfigRequest request =
+   *       GetAttachedServerConfigRequest.newBuilder()
+   *           .setName(AttachedServerConfigName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       attachedClustersClient.getAttachedServerConfigCallable().futureCall(request);
+   *   // Do something.
+   *   AttachedServerConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getAttachedServerConfigCallable() { + return stub.getAttachedServerConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates the install manifest to be installed on the target cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String attachedClusterId = "attachedClusterId865943409";
+   *   GenerateAttachedClusterInstallManifestResponse response =
+   *       attachedClustersClient.generateAttachedClusterInstallManifest(parent, attachedClusterId);
+   * }
+   * }
+ * + * @param parent Required. The parent location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource will be created. + *

Location names are formatted as `projects/<project-id>/locations/<region>`. + *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more + * details on Google Cloud resource names. + * @param attachedClusterId Required. A client provided ID the resource. Must be unique within the + * parent resource. + *

The provided ID will be part of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource name formatted as + * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`. + *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + *

When generating an install manifest for importing an existing Membership resource, the + * attached_cluster_id field must be the Membership id. + *

Membership names are formatted as `resource name formatted as + * `projects/<project-id>/locations/<region>/memberships/<membership-id>`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GenerateAttachedClusterInstallManifestResponse + generateAttachedClusterInstallManifest(LocationName parent, String attachedClusterId) { + GenerateAttachedClusterInstallManifestRequest request = + GenerateAttachedClusterInstallManifestRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAttachedClusterId(attachedClusterId) + .build(); + return generateAttachedClusterInstallManifest(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates the install manifest to be installed on the target cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String attachedClusterId = "attachedClusterId865943409";
+   *   GenerateAttachedClusterInstallManifestResponse response =
+   *       attachedClustersClient.generateAttachedClusterInstallManifest(parent, attachedClusterId);
+   * }
+   * }
+ * + * @param parent Required. The parent location where this + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource will be created. + *

Location names are formatted as `projects/<project-id>/locations/<region>`. + *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more + * details on Google Cloud resource names. + * @param attachedClusterId Required. A client provided ID the resource. Must be unique within the + * parent resource. + *

The provided ID will be part of the + * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource name formatted as + * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`. + *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + *

When generating an install manifest for importing an existing Membership resource, the + * attached_cluster_id field must be the Membership id. + *

Membership names are formatted as `resource name formatted as + * `projects/<project-id>/locations/<region>/memberships/<membership-id>`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GenerateAttachedClusterInstallManifestResponse + generateAttachedClusterInstallManifest(String parent, String attachedClusterId) { + GenerateAttachedClusterInstallManifestRequest request = + GenerateAttachedClusterInstallManifestRequest.newBuilder() + .setParent(parent) + .setAttachedClusterId(attachedClusterId) + .build(); + return generateAttachedClusterInstallManifest(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates the install manifest to be installed on the target cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   GenerateAttachedClusterInstallManifestRequest request =
+   *       GenerateAttachedClusterInstallManifestRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setAttachedClusterId("attachedClusterId865943409")
+   *           .setPlatformVersion("platformVersion1848800485")
+   *           .build();
+   *   GenerateAttachedClusterInstallManifestResponse response =
+   *       attachedClustersClient.generateAttachedClusterInstallManifest(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 GenerateAttachedClusterInstallManifestResponse + generateAttachedClusterInstallManifest( + GenerateAttachedClusterInstallManifestRequest request) { + return generateAttachedClusterInstallManifestCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates the install manifest to be installed on the target cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) {
+   *   GenerateAttachedClusterInstallManifestRequest request =
+   *       GenerateAttachedClusterInstallManifestRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setAttachedClusterId("attachedClusterId865943409")
+   *           .setPlatformVersion("platformVersion1848800485")
+   *           .build();
+   *   ApiFuture future =
+   *       attachedClustersClient
+   *           .generateAttachedClusterInstallManifestCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   GenerateAttachedClusterInstallManifestResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + GenerateAttachedClusterInstallManifestRequest, + GenerateAttachedClusterInstallManifestResponse> + generateAttachedClusterInstallManifestCallable() { + return stub.generateAttachedClusterInstallManifestCallable(); + } + + @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 ListAttachedClustersPagedResponse + extends AbstractPagedListResponse< + ListAttachedClustersRequest, + ListAttachedClustersResponse, + AttachedCluster, + ListAttachedClustersPage, + ListAttachedClustersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAttachedClustersPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAttachedClustersPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAttachedClustersPagedResponse(ListAttachedClustersPage page) { + super(page, ListAttachedClustersFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAttachedClustersPage + extends AbstractPage< + ListAttachedClustersRequest, + ListAttachedClustersResponse, + AttachedCluster, + ListAttachedClustersPage> { + + private ListAttachedClustersPage( + PageContext + context, + ListAttachedClustersResponse response) { + super(context, response); + } + + private static ListAttachedClustersPage createEmptyPage() { + return new ListAttachedClustersPage(null, null); + } + + @Override + protected ListAttachedClustersPage createPage( + PageContext + context, + ListAttachedClustersResponse response) { + return new ListAttachedClustersPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAttachedClustersFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAttachedClustersRequest, + ListAttachedClustersResponse, + AttachedCluster, + ListAttachedClustersPage, + ListAttachedClustersFixedSizeCollection> { + + private ListAttachedClustersFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAttachedClustersFixedSizeCollection createEmptyCollection() { + return new ListAttachedClustersFixedSizeCollection(null, 0); + } + + @Override + protected ListAttachedClustersFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListAttachedClustersFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersSettings.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersSettings.java new file mode 100644 index 000000000000..272dac5ddeb1 --- /dev/null +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersSettings.java @@ -0,0 +1,368 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1; + +import static com.google.cloud.gkemulticloud.v1.AttachedClustersClient.ListAttachedClustersPagedResponse; + +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.gkemulticloud.v1.stub.AttachedClustersStubSettings; +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 AttachedClustersClient}. + * + *

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

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

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

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AttachedClustersSettings.Builder attachedClustersSettingsBuilder =
+ *     AttachedClustersSettings.newBuilder();
+ * attachedClustersSettingsBuilder
+ *     .getAttachedClusterSettings()
+ *     .setRetrySettings(
+ *         attachedClustersSettingsBuilder
+ *             .getAttachedClusterSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * AttachedClustersSettings attachedClustersSettings = attachedClustersSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class AttachedClustersSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to createAttachedCluster. */ + public UnaryCallSettings + createAttachedClusterSettings() { + return ((AttachedClustersStubSettings) getStubSettings()).createAttachedClusterSettings(); + } + + /** Returns the object with the settings used for calls to createAttachedCluster. */ + public OperationCallSettings + createAttachedClusterOperationSettings() { + return ((AttachedClustersStubSettings) getStubSettings()) + .createAttachedClusterOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateAttachedCluster. */ + public UnaryCallSettings + updateAttachedClusterSettings() { + return ((AttachedClustersStubSettings) getStubSettings()).updateAttachedClusterSettings(); + } + + /** Returns the object with the settings used for calls to updateAttachedCluster. */ + public OperationCallSettings + updateAttachedClusterOperationSettings() { + return ((AttachedClustersStubSettings) getStubSettings()) + .updateAttachedClusterOperationSettings(); + } + + /** Returns the object with the settings used for calls to importAttachedCluster. */ + public UnaryCallSettings + importAttachedClusterSettings() { + return ((AttachedClustersStubSettings) getStubSettings()).importAttachedClusterSettings(); + } + + /** Returns the object with the settings used for calls to importAttachedCluster. */ + public OperationCallSettings + importAttachedClusterOperationSettings() { + return ((AttachedClustersStubSettings) getStubSettings()) + .importAttachedClusterOperationSettings(); + } + + /** Returns the object with the settings used for calls to getAttachedCluster. */ + public UnaryCallSettings + getAttachedClusterSettings() { + return ((AttachedClustersStubSettings) getStubSettings()).getAttachedClusterSettings(); + } + + /** Returns the object with the settings used for calls to listAttachedClusters. */ + public PagedCallSettings< + ListAttachedClustersRequest, + ListAttachedClustersResponse, + ListAttachedClustersPagedResponse> + listAttachedClustersSettings() { + return ((AttachedClustersStubSettings) getStubSettings()).listAttachedClustersSettings(); + } + + /** Returns the object with the settings used for calls to deleteAttachedCluster. */ + public UnaryCallSettings + deleteAttachedClusterSettings() { + return ((AttachedClustersStubSettings) getStubSettings()).deleteAttachedClusterSettings(); + } + + /** Returns the object with the settings used for calls to deleteAttachedCluster. */ + public OperationCallSettings + deleteAttachedClusterOperationSettings() { + return ((AttachedClustersStubSettings) getStubSettings()) + .deleteAttachedClusterOperationSettings(); + } + + /** Returns the object with the settings used for calls to getAttachedServerConfig. */ + public UnaryCallSettings + getAttachedServerConfigSettings() { + return ((AttachedClustersStubSettings) getStubSettings()).getAttachedServerConfigSettings(); + } + + /** + * Returns the object with the settings used for calls to generateAttachedClusterInstallManifest. + */ + public UnaryCallSettings< + GenerateAttachedClusterInstallManifestRequest, + GenerateAttachedClusterInstallManifestResponse> + generateAttachedClusterInstallManifestSettings() { + return ((AttachedClustersStubSettings) getStubSettings()) + .generateAttachedClusterInstallManifestSettings(); + } + + public static final AttachedClustersSettings create(AttachedClustersStubSettings stub) + throws IOException { + return new AttachedClustersSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return AttachedClustersStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return AttachedClustersStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return AttachedClustersStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return AttachedClustersStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return AttachedClustersStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return AttachedClustersStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return AttachedClustersStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AttachedClustersStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + @BetaApi + 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 AttachedClustersSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for AttachedClustersSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(AttachedClustersStubSettings.newBuilder(clientContext)); + } + + protected Builder(AttachedClustersSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(AttachedClustersStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(AttachedClustersStubSettings.newBuilder()); + } + + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(AttachedClustersStubSettings.newHttpJsonBuilder()); + } + + public AttachedClustersStubSettings.Builder getStubSettingsBuilder() { + return ((AttachedClustersStubSettings.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 createAttachedCluster. */ + public UnaryCallSettings.Builder + createAttachedClusterSettings() { + return getStubSettingsBuilder().createAttachedClusterSettings(); + } + + /** Returns the builder for the settings used for calls to createAttachedCluster. */ + public OperationCallSettings.Builder< + CreateAttachedClusterRequest, AttachedCluster, OperationMetadata> + createAttachedClusterOperationSettings() { + return getStubSettingsBuilder().createAttachedClusterOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateAttachedCluster. */ + public UnaryCallSettings.Builder + updateAttachedClusterSettings() { + return getStubSettingsBuilder().updateAttachedClusterSettings(); + } + + /** Returns the builder for the settings used for calls to updateAttachedCluster. */ + public OperationCallSettings.Builder< + UpdateAttachedClusterRequest, AttachedCluster, OperationMetadata> + updateAttachedClusterOperationSettings() { + return getStubSettingsBuilder().updateAttachedClusterOperationSettings(); + } + + /** Returns the builder for the settings used for calls to importAttachedCluster. */ + public UnaryCallSettings.Builder + importAttachedClusterSettings() { + return getStubSettingsBuilder().importAttachedClusterSettings(); + } + + /** Returns the builder for the settings used for calls to importAttachedCluster. */ + public OperationCallSettings.Builder< + ImportAttachedClusterRequest, AttachedCluster, OperationMetadata> + importAttachedClusterOperationSettings() { + return getStubSettingsBuilder().importAttachedClusterOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getAttachedCluster. */ + public UnaryCallSettings.Builder + getAttachedClusterSettings() { + return getStubSettingsBuilder().getAttachedClusterSettings(); + } + + /** Returns the builder for the settings used for calls to listAttachedClusters. */ + public PagedCallSettings.Builder< + ListAttachedClustersRequest, + ListAttachedClustersResponse, + ListAttachedClustersPagedResponse> + listAttachedClustersSettings() { + return getStubSettingsBuilder().listAttachedClustersSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAttachedCluster. */ + public UnaryCallSettings.Builder + deleteAttachedClusterSettings() { + return getStubSettingsBuilder().deleteAttachedClusterSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAttachedCluster. */ + public OperationCallSettings.Builder + deleteAttachedClusterOperationSettings() { + return getStubSettingsBuilder().deleteAttachedClusterOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getAttachedServerConfig. */ + public UnaryCallSettings.Builder + getAttachedServerConfigSettings() { + return getStubSettingsBuilder().getAttachedServerConfigSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * generateAttachedClusterInstallManifest. + */ + public UnaryCallSettings.Builder< + GenerateAttachedClusterInstallManifestRequest, + GenerateAttachedClusterInstallManifestResponse> + generateAttachedClusterInstallManifestSettings() { + return getStubSettingsBuilder().generateAttachedClusterInstallManifestSettings(); + } + + @Override + public AttachedClustersSettings build() throws IOException { + return new AttachedClustersSettings(this); + } + } +} diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersClient.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersClient.java index 01a448d9fa58..0e20fca91efc 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersClient.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersClient.java @@ -240,7 +240,7 @@ public final OperationsClient getHttpJsonOperationsClient() { *

The provided ID will be part of the * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name formatted as * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`. - *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAwsClusterAsync( @@ -292,7 +292,7 @@ public final OperationFuture createAwsClusterAsyn *

The provided ID will be part of the * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name formatted as * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`. - *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAwsClusterAsync( @@ -446,10 +446,12 @@ public final UnaryCallable createAwsClusterC * `control_plane.config_encryption.kms_key_arn`. * `control_plane.instance_type`. * * `control_plane.security_group_ids`. * `control_plane.proxy_config`. * * `control_plane.proxy_config.secret_arn`. * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. * `control_plane.root_volume.volume_type`. * * `control_plane.root_volume.iops`. * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.root_volume.volume_type`. * `control_plane.root_volume.size_gib`. * * `control_plane.ssh_config`. * `control_plane.ssh_config.ec2_key_pair`. * - * `control_plane.instance_placement.tenancy`. * `logging_config`. + * `control_plane.instance_placement.tenancy`. * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture updateAwsClusterAsync( @@ -1144,7 +1146,7 @@ public final GenerateAwsAccessTokenResponse generateAwsAccessToken( *

The provided ID will be part of the * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name formatted as * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`. - *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAwsNodePoolAsync( @@ -1197,7 +1199,7 @@ public final OperationFuture createAwsNodePoolAs *

The provided ID will be part of the * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name formatted as * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`. - *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAwsNodePoolAsync( @@ -1352,7 +1354,11 @@ public final UnaryCallable createAwsNodePoo * `config.root_volume.kms_key_arn`. * `config.root_volume.volume_type`. * * `config.root_volume.size_gib`. * `config.proxy_config`. * * `config.proxy_config.secret_arn`. * `config.proxy_config.secret_version`. * - * `config.ssh_config`. * `config.ssh_config.ec2_key_pair`. + * `config.ssh_config`. * `config.ssh_config.ec2_key_pair`. * + * `config.instance_placement.tenancy`. * `config.iam_instance_profile`. * + * `config.labels`. * `config.tags`. * `config.autoscaling_metrics_collection`. * + * `config.autoscaling_metrics_collection.granularity`. * + * `config.autoscaling_metrics_collection.metrics`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture updateAwsNodePoolAsync( diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersClient.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersClient.java index 088a7977482b..3dfe49733b2c 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersClient.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersClient.java @@ -245,7 +245,7 @@ public final OperationsClient getHttpJsonOperationsClient() { *

The provided ID will be part of the * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name formatted as * `projects/<project-id>/locations/<region>/azureClients/<client-id>`. - *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAzureClientAsync( @@ -300,7 +300,7 @@ public final OperationFuture createAzureClientAs *

The provided ID will be part of the * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name formatted as * `projects/<project-id>/locations/<region>/azureClients/<client-id>`. - *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAzureClientAsync( @@ -961,7 +961,7 @@ public final UnaryCallable deleteAzureClien *

The provided ID will be part of the * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name formatted as * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`. - *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAzureClusterAsync( @@ -1013,7 +1013,7 @@ public final OperationFuture createAzureCluster *

The provided ID will be part of the * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name formatted as * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`. - *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAzureClusterAsync( @@ -1162,9 +1162,13 @@ public final UnaryCallable createAzureClus * @param updateMask Required. Mask of fields to update. At least one path must be supplied in * this field. The elements of the repeated paths field can only include these fields from * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: - *

* `description`. * `annotations`. * `azureClient`. * - * `control_plane.version`. * `control_plane.vm_size`. * `authorization.admin_users`. - * * `control_plane.root_volume.size_gib`. * `logging_config` + *

* `description`. * `azureClient`. * `control_plane.version`. * + * `control_plane.vm_size`. * `annotations`. * `authorization.admin_users`. * + * `control_plane.root_volume.size_gib`. * `control_plane.proxy_config`. * + * `control_plane.proxy_config.resource_group_id`. * + * `control_plane.proxy_config.secret_id`. * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` * + * `monitoring_config.managed_prometheus_config.enabled`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture updateAzureClusterAsync( @@ -1866,7 +1870,7 @@ public final GenerateAzureAccessTokenResponse generateAzureAccessToken( *

The provided ID will be part of the * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name formatted as * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`. - *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAzureNodePoolAsync( @@ -1920,7 +1924,7 @@ public final OperationFuture createAzureNodePo *

The provided ID will be part of the * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name formatted as * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`. - *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAzureNodePoolAsync( @@ -2073,7 +2077,7 @@ public final UnaryCallable createAzureNod * this field. The elements of the repeated paths field can only include these fields from * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]: *

*. `annotations`. * `version`. * `autoscaling.min_node_count`. * - * `autoscaling.max_node_count`. * `config.vm_size`. + * `autoscaling.max_node_count`. * `config.ssh_config.authorized_key`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture updateAzureNodePoolAsync( diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/gapic_metadata.json b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/gapic_metadata.json index 160928931656..75b5c7121211 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/gapic_metadata.json +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/gapic_metadata.json @@ -5,6 +5,39 @@ "protoPackage": "google.cloud.gkemulticloud.v1", "libraryPackage": "com.google.cloud.gkemulticloud.v1", "services": { + "AttachedClusters": { + "clients": { + "grpc": { + "libraryClient": "AttachedClustersClient", + "rpcs": { + "CreateAttachedCluster": { + "methods": ["createAttachedClusterAsync", "createAttachedClusterAsync", "createAttachedClusterAsync", "createAttachedClusterOperationCallable", "createAttachedClusterCallable"] + }, + "DeleteAttachedCluster": { + "methods": ["deleteAttachedClusterAsync", "deleteAttachedClusterAsync", "deleteAttachedClusterAsync", "deleteAttachedClusterOperationCallable", "deleteAttachedClusterCallable"] + }, + "GenerateAttachedClusterInstallManifest": { + "methods": ["generateAttachedClusterInstallManifest", "generateAttachedClusterInstallManifest", "generateAttachedClusterInstallManifest", "generateAttachedClusterInstallManifestCallable"] + }, + "GetAttachedCluster": { + "methods": ["getAttachedCluster", "getAttachedCluster", "getAttachedCluster", "getAttachedClusterCallable"] + }, + "GetAttachedServerConfig": { + "methods": ["getAttachedServerConfig", "getAttachedServerConfig", "getAttachedServerConfig", "getAttachedServerConfigCallable"] + }, + "ImportAttachedCluster": { + "methods": ["importAttachedClusterAsync", "importAttachedClusterAsync", "importAttachedClusterAsync", "importAttachedClusterOperationCallable", "importAttachedClusterCallable"] + }, + "ListAttachedClusters": { + "methods": ["listAttachedClusters", "listAttachedClusters", "listAttachedClusters", "listAttachedClustersPagedCallable", "listAttachedClustersCallable"] + }, + "UpdateAttachedCluster": { + "methods": ["updateAttachedClusterAsync", "updateAttachedClusterAsync", "updateAttachedClusterOperationCallable", "updateAttachedClusterCallable"] + } + } + } + } + }, "AwsClusters": { "clients": { "grpc": { diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/package-info.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/package-info.java index 8fadc7da29ea..80469a65c1a6 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/package-info.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/package-info.java @@ -19,6 +19,26 @@ * *

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

======================= AttachedClustersClient ======================= + * + *

Service Description: The AttachedClusters API provides a single centrally managed service to + * register and manage Anthos attached clusters that run on customer's owned infrastructure. + * + *

Sample for AttachedClustersClient: + * + *

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

======================= AwsClustersClient ======================= * *

Service Description: The AwsClusters API provides a single centrally managed service to create diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AttachedClustersStub.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AttachedClustersStub.java new file mode 100644 index 000000000000..04970604d3e2 --- /dev/null +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AttachedClustersStub.java @@ -0,0 +1,128 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.stub; + +import static com.google.cloud.gkemulticloud.v1.AttachedClustersClient.ListAttachedClustersPagedResponse; + +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.gkemulticloud.v1.AttachedCluster; +import com.google.cloud.gkemulticloud.v1.AttachedServerConfig; +import com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest; +import com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest; +import com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest; +import com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse; +import com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest; +import com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest; +import com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest; +import com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest; +import com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse; +import com.google.cloud.gkemulticloud.v1.OperationMetadata; +import com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest; +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 AttachedClusters service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class AttachedClustersStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public OperationCallable + createAttachedClusterOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createAttachedClusterOperationCallable()"); + } + + public UnaryCallable createAttachedClusterCallable() { + throw new UnsupportedOperationException("Not implemented: createAttachedClusterCallable()"); + } + + public OperationCallable + updateAttachedClusterOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateAttachedClusterOperationCallable()"); + } + + public UnaryCallable updateAttachedClusterCallable() { + throw new UnsupportedOperationException("Not implemented: updateAttachedClusterCallable()"); + } + + public OperationCallable + importAttachedClusterOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: importAttachedClusterOperationCallable()"); + } + + public UnaryCallable importAttachedClusterCallable() { + throw new UnsupportedOperationException("Not implemented: importAttachedClusterCallable()"); + } + + public UnaryCallable getAttachedClusterCallable() { + throw new UnsupportedOperationException("Not implemented: getAttachedClusterCallable()"); + } + + public UnaryCallable + listAttachedClustersPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAttachedClustersPagedCallable()"); + } + + public UnaryCallable + listAttachedClustersCallable() { + throw new UnsupportedOperationException("Not implemented: listAttachedClustersCallable()"); + } + + public OperationCallable + deleteAttachedClusterOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteAttachedClusterOperationCallable()"); + } + + public UnaryCallable deleteAttachedClusterCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAttachedClusterCallable()"); + } + + public UnaryCallable + getAttachedServerConfigCallable() { + throw new UnsupportedOperationException("Not implemented: getAttachedServerConfigCallable()"); + } + + public UnaryCallable< + GenerateAttachedClusterInstallManifestRequest, + GenerateAttachedClusterInstallManifestResponse> + generateAttachedClusterInstallManifestCallable() { + throw new UnsupportedOperationException( + "Not implemented: generateAttachedClusterInstallManifestCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AttachedClustersStubSettings.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AttachedClustersStubSettings.java new file mode 100644 index 000000000000..401bbb6f6386 --- /dev/null +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AttachedClustersStubSettings.java @@ -0,0 +1,841 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.stub; + +import static com.google.cloud.gkemulticloud.v1.AttachedClustersClient.ListAttachedClustersPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.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.gkemulticloud.v1.AttachedCluster; +import com.google.cloud.gkemulticloud.v1.AttachedServerConfig; +import com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest; +import com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest; +import com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest; +import com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse; +import com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest; +import com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest; +import com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest; +import com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest; +import com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse; +import com.google.cloud.gkemulticloud.v1.OperationMetadata; +import com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AttachedClustersStub}. + * + *

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

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

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

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AttachedClustersStubSettings.Builder attachedClustersSettingsBuilder =
+ *     AttachedClustersStubSettings.newBuilder();
+ * attachedClustersSettingsBuilder
+ *     .getAttachedClusterSettings()
+ *     .setRetrySettings(
+ *         attachedClustersSettingsBuilder
+ *             .getAttachedClusterSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * AttachedClustersStubSettings attachedClustersSettings = attachedClustersSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class AttachedClustersStubSettings 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 + createAttachedClusterSettings; + private final OperationCallSettings< + CreateAttachedClusterRequest, AttachedCluster, OperationMetadata> + createAttachedClusterOperationSettings; + private final UnaryCallSettings + updateAttachedClusterSettings; + private final OperationCallSettings< + UpdateAttachedClusterRequest, AttachedCluster, OperationMetadata> + updateAttachedClusterOperationSettings; + private final UnaryCallSettings + importAttachedClusterSettings; + private final OperationCallSettings< + ImportAttachedClusterRequest, AttachedCluster, OperationMetadata> + importAttachedClusterOperationSettings; + private final UnaryCallSettings + getAttachedClusterSettings; + private final PagedCallSettings< + ListAttachedClustersRequest, + ListAttachedClustersResponse, + ListAttachedClustersPagedResponse> + listAttachedClustersSettings; + private final UnaryCallSettings + deleteAttachedClusterSettings; + private final OperationCallSettings + deleteAttachedClusterOperationSettings; + private final UnaryCallSettings + getAttachedServerConfigSettings; + private final UnaryCallSettings< + GenerateAttachedClusterInstallManifestRequest, + GenerateAttachedClusterInstallManifestResponse> + generateAttachedClusterInstallManifestSettings; + + private static final PagedListDescriptor< + ListAttachedClustersRequest, ListAttachedClustersResponse, AttachedCluster> + LIST_ATTACHED_CLUSTERS_PAGE_STR_DESC = + new PagedListDescriptor< + ListAttachedClustersRequest, ListAttachedClustersResponse, AttachedCluster>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAttachedClustersRequest injectToken( + ListAttachedClustersRequest payload, String token) { + return ListAttachedClustersRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAttachedClustersRequest injectPageSize( + ListAttachedClustersRequest payload, int pageSize) { + return ListAttachedClustersRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAttachedClustersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAttachedClustersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListAttachedClustersResponse payload) { + return payload.getAttachedClustersList() == null + ? ImmutableList.of() + : payload.getAttachedClustersList(); + } + }; + + private static final PagedListResponseFactory< + ListAttachedClustersRequest, + ListAttachedClustersResponse, + ListAttachedClustersPagedResponse> + LIST_ATTACHED_CLUSTERS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAttachedClustersRequest, + ListAttachedClustersResponse, + ListAttachedClustersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAttachedClustersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListAttachedClustersRequest, ListAttachedClustersResponse, AttachedCluster> + pageContext = + PageContext.create( + callable, LIST_ATTACHED_CLUSTERS_PAGE_STR_DESC, request, context); + return ListAttachedClustersPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to createAttachedCluster. */ + public UnaryCallSettings + createAttachedClusterSettings() { + return createAttachedClusterSettings; + } + + /** Returns the object with the settings used for calls to createAttachedCluster. */ + public OperationCallSettings + createAttachedClusterOperationSettings() { + return createAttachedClusterOperationSettings; + } + + /** Returns the object with the settings used for calls to updateAttachedCluster. */ + public UnaryCallSettings + updateAttachedClusterSettings() { + return updateAttachedClusterSettings; + } + + /** Returns the object with the settings used for calls to updateAttachedCluster. */ + public OperationCallSettings + updateAttachedClusterOperationSettings() { + return updateAttachedClusterOperationSettings; + } + + /** Returns the object with the settings used for calls to importAttachedCluster. */ + public UnaryCallSettings + importAttachedClusterSettings() { + return importAttachedClusterSettings; + } + + /** Returns the object with the settings used for calls to importAttachedCluster. */ + public OperationCallSettings + importAttachedClusterOperationSettings() { + return importAttachedClusterOperationSettings; + } + + /** Returns the object with the settings used for calls to getAttachedCluster. */ + public UnaryCallSettings + getAttachedClusterSettings() { + return getAttachedClusterSettings; + } + + /** Returns the object with the settings used for calls to listAttachedClusters. */ + public PagedCallSettings< + ListAttachedClustersRequest, + ListAttachedClustersResponse, + ListAttachedClustersPagedResponse> + listAttachedClustersSettings() { + return listAttachedClustersSettings; + } + + /** Returns the object with the settings used for calls to deleteAttachedCluster. */ + public UnaryCallSettings + deleteAttachedClusterSettings() { + return deleteAttachedClusterSettings; + } + + /** Returns the object with the settings used for calls to deleteAttachedCluster. */ + public OperationCallSettings + deleteAttachedClusterOperationSettings() { + return deleteAttachedClusterOperationSettings; + } + + /** Returns the object with the settings used for calls to getAttachedServerConfig. */ + public UnaryCallSettings + getAttachedServerConfigSettings() { + return getAttachedServerConfigSettings; + } + + /** + * Returns the object with the settings used for calls to generateAttachedClusterInstallManifest. + */ + public UnaryCallSettings< + GenerateAttachedClusterInstallManifestRequest, + GenerateAttachedClusterInstallManifestResponse> + generateAttachedClusterInstallManifestSettings() { + return generateAttachedClusterInstallManifestSettings; + } + + public AttachedClustersStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcAttachedClustersStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonAttachedClustersStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "gkemulticloud.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "gkemulticloud.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(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AttachedClustersStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AttachedClustersStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AttachedClustersStubSettings.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 AttachedClustersStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createAttachedClusterSettings = settingsBuilder.createAttachedClusterSettings().build(); + createAttachedClusterOperationSettings = + settingsBuilder.createAttachedClusterOperationSettings().build(); + updateAttachedClusterSettings = settingsBuilder.updateAttachedClusterSettings().build(); + updateAttachedClusterOperationSettings = + settingsBuilder.updateAttachedClusterOperationSettings().build(); + importAttachedClusterSettings = settingsBuilder.importAttachedClusterSettings().build(); + importAttachedClusterOperationSettings = + settingsBuilder.importAttachedClusterOperationSettings().build(); + getAttachedClusterSettings = settingsBuilder.getAttachedClusterSettings().build(); + listAttachedClustersSettings = settingsBuilder.listAttachedClustersSettings().build(); + deleteAttachedClusterSettings = settingsBuilder.deleteAttachedClusterSettings().build(); + deleteAttachedClusterOperationSettings = + settingsBuilder.deleteAttachedClusterOperationSettings().build(); + getAttachedServerConfigSettings = settingsBuilder.getAttachedServerConfigSettings().build(); + generateAttachedClusterInstallManifestSettings = + settingsBuilder.generateAttachedClusterInstallManifestSettings().build(); + } + + /** Builder for AttachedClustersStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + createAttachedClusterSettings; + private final OperationCallSettings.Builder< + CreateAttachedClusterRequest, AttachedCluster, OperationMetadata> + createAttachedClusterOperationSettings; + private final UnaryCallSettings.Builder + updateAttachedClusterSettings; + private final OperationCallSettings.Builder< + UpdateAttachedClusterRequest, AttachedCluster, OperationMetadata> + updateAttachedClusterOperationSettings; + private final UnaryCallSettings.Builder + importAttachedClusterSettings; + private final OperationCallSettings.Builder< + ImportAttachedClusterRequest, AttachedCluster, OperationMetadata> + importAttachedClusterOperationSettings; + private final UnaryCallSettings.Builder + getAttachedClusterSettings; + private final PagedCallSettings.Builder< + ListAttachedClustersRequest, + ListAttachedClustersResponse, + ListAttachedClustersPagedResponse> + listAttachedClustersSettings; + private final UnaryCallSettings.Builder + deleteAttachedClusterSettings; + private final OperationCallSettings.Builder< + DeleteAttachedClusterRequest, Empty, OperationMetadata> + deleteAttachedClusterOperationSettings; + private final UnaryCallSettings.Builder + getAttachedServerConfigSettings; + private final UnaryCallSettings.Builder< + GenerateAttachedClusterInstallManifestRequest, + GenerateAttachedClusterInstallManifestResponse> + generateAttachedClusterInstallManifestSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("no_retry_1_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(10000L)) + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createAttachedClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createAttachedClusterOperationSettings = OperationCallSettings.newBuilder(); + updateAttachedClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateAttachedClusterOperationSettings = OperationCallSettings.newBuilder(); + importAttachedClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + importAttachedClusterOperationSettings = OperationCallSettings.newBuilder(); + getAttachedClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listAttachedClustersSettings = + PagedCallSettings.newBuilder(LIST_ATTACHED_CLUSTERS_PAGE_STR_FACT); + deleteAttachedClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteAttachedClusterOperationSettings = OperationCallSettings.newBuilder(); + getAttachedServerConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + generateAttachedClusterInstallManifestSettings = + UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createAttachedClusterSettings, + updateAttachedClusterSettings, + importAttachedClusterSettings, + getAttachedClusterSettings, + listAttachedClustersSettings, + deleteAttachedClusterSettings, + getAttachedServerConfigSettings, + generateAttachedClusterInstallManifestSettings); + initDefaults(this); + } + + protected Builder(AttachedClustersStubSettings settings) { + super(settings); + + createAttachedClusterSettings = settings.createAttachedClusterSettings.toBuilder(); + createAttachedClusterOperationSettings = + settings.createAttachedClusterOperationSettings.toBuilder(); + updateAttachedClusterSettings = settings.updateAttachedClusterSettings.toBuilder(); + updateAttachedClusterOperationSettings = + settings.updateAttachedClusterOperationSettings.toBuilder(); + importAttachedClusterSettings = settings.importAttachedClusterSettings.toBuilder(); + importAttachedClusterOperationSettings = + settings.importAttachedClusterOperationSettings.toBuilder(); + getAttachedClusterSettings = settings.getAttachedClusterSettings.toBuilder(); + listAttachedClustersSettings = settings.listAttachedClustersSettings.toBuilder(); + deleteAttachedClusterSettings = settings.deleteAttachedClusterSettings.toBuilder(); + deleteAttachedClusterOperationSettings = + settings.deleteAttachedClusterOperationSettings.toBuilder(); + getAttachedServerConfigSettings = settings.getAttachedServerConfigSettings.toBuilder(); + generateAttachedClusterInstallManifestSettings = + settings.generateAttachedClusterInstallManifestSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createAttachedClusterSettings, + updateAttachedClusterSettings, + importAttachedClusterSettings, + getAttachedClusterSettings, + listAttachedClustersSettings, + deleteAttachedClusterSettings, + getAttachedServerConfigSettings, + generateAttachedClusterInstallManifestSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + 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.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .createAttachedClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateAttachedClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .importAttachedClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getAttachedClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listAttachedClustersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteAttachedClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getAttachedServerConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .generateAttachedClusterInstallManifestSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createAttachedClusterOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AttachedCluster.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .updateAttachedClusterOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AttachedCluster.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .importAttachedClusterOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AttachedCluster.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteAttachedClusterOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createAttachedCluster. */ + public UnaryCallSettings.Builder + createAttachedClusterSettings() { + return createAttachedClusterSettings; + } + + /** Returns the builder for the settings used for calls to createAttachedCluster. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreateAttachedClusterRequest, AttachedCluster, OperationMetadata> + createAttachedClusterOperationSettings() { + return createAttachedClusterOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateAttachedCluster. */ + public UnaryCallSettings.Builder + updateAttachedClusterSettings() { + return updateAttachedClusterSettings; + } + + /** Returns the builder for the settings used for calls to updateAttachedCluster. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + UpdateAttachedClusterRequest, AttachedCluster, OperationMetadata> + updateAttachedClusterOperationSettings() { + return updateAttachedClusterOperationSettings; + } + + /** Returns the builder for the settings used for calls to importAttachedCluster. */ + public UnaryCallSettings.Builder + importAttachedClusterSettings() { + return importAttachedClusterSettings; + } + + /** Returns the builder for the settings used for calls to importAttachedCluster. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + ImportAttachedClusterRequest, AttachedCluster, OperationMetadata> + importAttachedClusterOperationSettings() { + return importAttachedClusterOperationSettings; + } + + /** Returns the builder for the settings used for calls to getAttachedCluster. */ + public UnaryCallSettings.Builder + getAttachedClusterSettings() { + return getAttachedClusterSettings; + } + + /** Returns the builder for the settings used for calls to listAttachedClusters. */ + public PagedCallSettings.Builder< + ListAttachedClustersRequest, + ListAttachedClustersResponse, + ListAttachedClustersPagedResponse> + listAttachedClustersSettings() { + return listAttachedClustersSettings; + } + + /** Returns the builder for the settings used for calls to deleteAttachedCluster. */ + public UnaryCallSettings.Builder + deleteAttachedClusterSettings() { + return deleteAttachedClusterSettings; + } + + /** Returns the builder for the settings used for calls to deleteAttachedCluster. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteAttachedClusterOperationSettings() { + return deleteAttachedClusterOperationSettings; + } + + /** Returns the builder for the settings used for calls to getAttachedServerConfig. */ + public UnaryCallSettings.Builder + getAttachedServerConfigSettings() { + return getAttachedServerConfigSettings; + } + + /** + * Returns the builder for the settings used for calls to + * generateAttachedClusterInstallManifest. + */ + public UnaryCallSettings.Builder< + GenerateAttachedClusterInstallManifestRequest, + GenerateAttachedClusterInstallManifestResponse> + generateAttachedClusterInstallManifestSettings() { + return generateAttachedClusterInstallManifestSettings; + } + + @Override + public AttachedClustersStubSettings build() throws IOException { + return new AttachedClustersStubSettings(this); + } + } +} diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/GrpcAttachedClustersCallableFactory.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/GrpcAttachedClustersCallableFactory.java new file mode 100644 index 000000000000..e7c1ef22f11e --- /dev/null +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/GrpcAttachedClustersCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.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 AttachedClusters service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcAttachedClustersCallableFactory 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-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/GrpcAttachedClustersStub.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/GrpcAttachedClustersStub.java new file mode 100644 index 000000000000..a071ca599c6e --- /dev/null +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/GrpcAttachedClustersStub.java @@ -0,0 +1,514 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.stub; + +import static com.google.cloud.gkemulticloud.v1.AttachedClustersClient.ListAttachedClustersPagedResponse; + +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.UnaryCallable; +import com.google.cloud.gkemulticloud.v1.AttachedCluster; +import com.google.cloud.gkemulticloud.v1.AttachedServerConfig; +import com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest; +import com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest; +import com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest; +import com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse; +import com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest; +import com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest; +import com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest; +import com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest; +import com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse; +import com.google.cloud.gkemulticloud.v1.OperationMetadata; +import com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest; +import com.google.common.collect.ImmutableMap; +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 AttachedClusters service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcAttachedClustersStub extends AttachedClustersStub { + private static final MethodDescriptor + createAttachedClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gkemulticloud.v1.AttachedClusters/CreateAttachedCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateAttachedClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateAttachedClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gkemulticloud.v1.AttachedClusters/UpdateAttachedCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAttachedClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + importAttachedClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gkemulticloud.v1.AttachedClusters/ImportAttachedCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(ImportAttachedClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getAttachedClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gkemulticloud.v1.AttachedClusters/GetAttachedCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAttachedClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AttachedCluster.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listAttachedClustersMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gkemulticloud.v1.AttachedClusters/ListAttachedClusters") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAttachedClustersRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAttachedClustersResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteAttachedClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gkemulticloud.v1.AttachedClusters/DeleteAttachedCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteAttachedClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getAttachedServerConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gkemulticloud.v1.AttachedClusters/GetAttachedServerConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAttachedServerConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(AttachedServerConfig.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + GenerateAttachedClusterInstallManifestRequest, + GenerateAttachedClusterInstallManifestResponse> + generateAttachedClusterInstallManifestMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gkemulticloud.v1.AttachedClusters/GenerateAttachedClusterInstallManifest") + .setRequestMarshaller( + ProtoUtils.marshaller( + GenerateAttachedClusterInstallManifestRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + GenerateAttachedClusterInstallManifestResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable + createAttachedClusterCallable; + private final OperationCallable + createAttachedClusterOperationCallable; + private final UnaryCallable + updateAttachedClusterCallable; + private final OperationCallable + updateAttachedClusterOperationCallable; + private final UnaryCallable + importAttachedClusterCallable; + private final OperationCallable + importAttachedClusterOperationCallable; + private final UnaryCallable + getAttachedClusterCallable; + private final UnaryCallable + listAttachedClustersCallable; + private final UnaryCallable + listAttachedClustersPagedCallable; + private final UnaryCallable + deleteAttachedClusterCallable; + private final OperationCallable + deleteAttachedClusterOperationCallable; + private final UnaryCallable + getAttachedServerConfigCallable; + private final UnaryCallable< + GenerateAttachedClusterInstallManifestRequest, + GenerateAttachedClusterInstallManifestResponse> + generateAttachedClusterInstallManifestCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcAttachedClustersStub create(AttachedClustersStubSettings settings) + throws IOException { + return new GrpcAttachedClustersStub(settings, ClientContext.create(settings)); + } + + public static final GrpcAttachedClustersStub create(ClientContext clientContext) + throws IOException { + return new GrpcAttachedClustersStub( + AttachedClustersStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcAttachedClustersStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcAttachedClustersStub( + AttachedClustersStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcAttachedClustersStub, 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 GrpcAttachedClustersStub( + AttachedClustersStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcAttachedClustersCallableFactory()); + } + + /** + * Constructs an instance of GrpcAttachedClustersStub, 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 GrpcAttachedClustersStub( + AttachedClustersStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + createAttachedClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createAttachedClusterMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + updateAttachedClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAttachedClusterMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "attached_cluster.name", + String.valueOf(request.getAttachedCluster().getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + importAttachedClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(importAttachedClusterMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + getAttachedClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAttachedClusterMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + listAttachedClustersTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAttachedClustersMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + deleteAttachedClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAttachedClusterMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + getAttachedServerConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAttachedServerConfigMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings< + GenerateAttachedClusterInstallManifestRequest, + GenerateAttachedClusterInstallManifestResponse> + generateAttachedClusterInstallManifestTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(generateAttachedClusterInstallManifestMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + + this.createAttachedClusterCallable = + callableFactory.createUnaryCallable( + createAttachedClusterTransportSettings, + settings.createAttachedClusterSettings(), + clientContext); + this.createAttachedClusterOperationCallable = + callableFactory.createOperationCallable( + createAttachedClusterTransportSettings, + settings.createAttachedClusterOperationSettings(), + clientContext, + operationsStub); + this.updateAttachedClusterCallable = + callableFactory.createUnaryCallable( + updateAttachedClusterTransportSettings, + settings.updateAttachedClusterSettings(), + clientContext); + this.updateAttachedClusterOperationCallable = + callableFactory.createOperationCallable( + updateAttachedClusterTransportSettings, + settings.updateAttachedClusterOperationSettings(), + clientContext, + operationsStub); + this.importAttachedClusterCallable = + callableFactory.createUnaryCallable( + importAttachedClusterTransportSettings, + settings.importAttachedClusterSettings(), + clientContext); + this.importAttachedClusterOperationCallable = + callableFactory.createOperationCallable( + importAttachedClusterTransportSettings, + settings.importAttachedClusterOperationSettings(), + clientContext, + operationsStub); + this.getAttachedClusterCallable = + callableFactory.createUnaryCallable( + getAttachedClusterTransportSettings, + settings.getAttachedClusterSettings(), + clientContext); + this.listAttachedClustersCallable = + callableFactory.createUnaryCallable( + listAttachedClustersTransportSettings, + settings.listAttachedClustersSettings(), + clientContext); + this.listAttachedClustersPagedCallable = + callableFactory.createPagedCallable( + listAttachedClustersTransportSettings, + settings.listAttachedClustersSettings(), + clientContext); + this.deleteAttachedClusterCallable = + callableFactory.createUnaryCallable( + deleteAttachedClusterTransportSettings, + settings.deleteAttachedClusterSettings(), + clientContext); + this.deleteAttachedClusterOperationCallable = + callableFactory.createOperationCallable( + deleteAttachedClusterTransportSettings, + settings.deleteAttachedClusterOperationSettings(), + clientContext, + operationsStub); + this.getAttachedServerConfigCallable = + callableFactory.createUnaryCallable( + getAttachedServerConfigTransportSettings, + settings.getAttachedServerConfigSettings(), + clientContext); + this.generateAttachedClusterInstallManifestCallable = + callableFactory.createUnaryCallable( + generateAttachedClusterInstallManifestTransportSettings, + settings.generateAttachedClusterInstallManifestSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable createAttachedClusterCallable() { + return createAttachedClusterCallable; + } + + @Override + public OperationCallable + createAttachedClusterOperationCallable() { + return createAttachedClusterOperationCallable; + } + + @Override + public UnaryCallable updateAttachedClusterCallable() { + return updateAttachedClusterCallable; + } + + @Override + public OperationCallable + updateAttachedClusterOperationCallable() { + return updateAttachedClusterOperationCallable; + } + + @Override + public UnaryCallable importAttachedClusterCallable() { + return importAttachedClusterCallable; + } + + @Override + public OperationCallable + importAttachedClusterOperationCallable() { + return importAttachedClusterOperationCallable; + } + + @Override + public UnaryCallable getAttachedClusterCallable() { + return getAttachedClusterCallable; + } + + @Override + public UnaryCallable + listAttachedClustersCallable() { + return listAttachedClustersCallable; + } + + @Override + public UnaryCallable + listAttachedClustersPagedCallable() { + return listAttachedClustersPagedCallable; + } + + @Override + public UnaryCallable deleteAttachedClusterCallable() { + return deleteAttachedClusterCallable; + } + + @Override + public OperationCallable + deleteAttachedClusterOperationCallable() { + return deleteAttachedClusterOperationCallable; + } + + @Override + public UnaryCallable + getAttachedServerConfigCallable() { + return getAttachedServerConfigCallable; + } + + @Override + public UnaryCallable< + GenerateAttachedClusterInstallManifestRequest, + GenerateAttachedClusterInstallManifestResponse> + generateAttachedClusterInstallManifestCallable() { + return generateAttachedClusterInstallManifestCallable; + } + + @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-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/HttpJsonAttachedClustersCallableFactory.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/HttpJsonAttachedClustersCallableFactory.java new file mode 100644 index 000000000000..62f2fee8e000 --- /dev/null +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/HttpJsonAttachedClustersCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the AttachedClusters service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonAttachedClustersCallableFactory + 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); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @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-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/HttpJsonAttachedClustersStub.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/HttpJsonAttachedClustersStub.java new file mode 100644 index 000000000000..562bd935e4d2 --- /dev/null +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/HttpJsonAttachedClustersStub.java @@ -0,0 +1,733 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.stub; + +import static com.google.cloud.gkemulticloud.v1.AttachedClustersClient.ListAttachedClustersPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.gkemulticloud.v1.AttachedCluster; +import com.google.cloud.gkemulticloud.v1.AttachedServerConfig; +import com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest; +import com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest; +import com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest; +import com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse; +import com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest; +import com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest; +import com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest; +import com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest; +import com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse; +import com.google.cloud.gkemulticloud.v1.OperationMetadata; +import com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest; +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 AttachedClusters service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonAttachedClustersStub extends AttachedClustersStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(AttachedCluster.getDescriptor()) + .add(OperationMetadata.getDescriptor()) + .add(Empty.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + createAttachedClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gkemulticloud.v1.AttachedClusters/CreateAttachedCluster") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/attachedClusters", + 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, "attachedClusterId", request.getAttachedClusterId()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("attachedCluster", request.getAttachedCluster(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateAttachedClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateAttachedClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gkemulticloud.v1.AttachedClusters/UpdateAttachedCluster") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{attachedCluster.name=projects/*/locations/*/attachedClusters/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "attachedCluster.name", + request.getAttachedCluster().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("attachedCluster", request.getAttachedCluster(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateAttachedClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + importAttachedClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gkemulticloud.v1.AttachedClusters/ImportAttachedCluster") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/attachedClusters:import", + 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(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ImportAttachedClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + getAttachedClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gkemulticloud.v1.AttachedClusters/GetAttachedCluster") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/attachedClusters/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AttachedCluster.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListAttachedClustersRequest, ListAttachedClustersResponse> + listAttachedClustersMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.gkemulticloud.v1.AttachedClusters/ListAttachedClusters") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/attachedClusters", + 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()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAttachedClustersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteAttachedClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gkemulticloud.v1.AttachedClusters/DeleteAttachedCluster") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/attachedClusters/*}", + 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, "allowMissing", request.getAllowMissing()); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam( + fields, "ignoreErrors", request.getIgnoreErrors()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteAttachedClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + getAttachedServerConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gkemulticloud.v1.AttachedClusters/GetAttachedServerConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/attachedServerConfig}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AttachedServerConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + GenerateAttachedClusterInstallManifestRequest, + GenerateAttachedClusterInstallManifestResponse> + generateAttachedClusterInstallManifestMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.gkemulticloud.v1.AttachedClusters/GenerateAttachedClusterInstallManifest") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}:generateAttachedClusterInstallManifest", + 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, "attachedClusterId", request.getAttachedClusterId()); + serializer.putQueryParam( + fields, "platformVersion", request.getPlatformVersion()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser + .newBuilder() + .setDefaultInstance( + GenerateAttachedClusterInstallManifestResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + createAttachedClusterCallable; + private final OperationCallable + createAttachedClusterOperationCallable; + private final UnaryCallable + updateAttachedClusterCallable; + private final OperationCallable + updateAttachedClusterOperationCallable; + private final UnaryCallable + importAttachedClusterCallable; + private final OperationCallable + importAttachedClusterOperationCallable; + private final UnaryCallable + getAttachedClusterCallable; + private final UnaryCallable + listAttachedClustersCallable; + private final UnaryCallable + listAttachedClustersPagedCallable; + private final UnaryCallable + deleteAttachedClusterCallable; + private final OperationCallable + deleteAttachedClusterOperationCallable; + private final UnaryCallable + getAttachedServerConfigCallable; + private final UnaryCallable< + GenerateAttachedClusterInstallManifestRequest, + GenerateAttachedClusterInstallManifestResponse> + generateAttachedClusterInstallManifestCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonAttachedClustersStub create(AttachedClustersStubSettings settings) + throws IOException { + return new HttpJsonAttachedClustersStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonAttachedClustersStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonAttachedClustersStub( + AttachedClustersStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonAttachedClustersStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonAttachedClustersStub( + AttachedClustersStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonAttachedClustersStub, 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 HttpJsonAttachedClustersStub( + AttachedClustersStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonAttachedClustersCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonAttachedClustersStub, 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 HttpJsonAttachedClustersStub( + AttachedClustersStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings + createAttachedClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAttachedClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateAttachedClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAttachedClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + importAttachedClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(importAttachedClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getAttachedClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAttachedClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listAttachedClustersTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listAttachedClustersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + deleteAttachedClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAttachedClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getAttachedServerConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAttachedServerConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings< + GenerateAttachedClusterInstallManifestRequest, + GenerateAttachedClusterInstallManifestResponse> + generateAttachedClusterInstallManifestTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(generateAttachedClusterInstallManifestMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createAttachedClusterCallable = + callableFactory.createUnaryCallable( + createAttachedClusterTransportSettings, + settings.createAttachedClusterSettings(), + clientContext); + this.createAttachedClusterOperationCallable = + callableFactory.createOperationCallable( + createAttachedClusterTransportSettings, + settings.createAttachedClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateAttachedClusterCallable = + callableFactory.createUnaryCallable( + updateAttachedClusterTransportSettings, + settings.updateAttachedClusterSettings(), + clientContext); + this.updateAttachedClusterOperationCallable = + callableFactory.createOperationCallable( + updateAttachedClusterTransportSettings, + settings.updateAttachedClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.importAttachedClusterCallable = + callableFactory.createUnaryCallable( + importAttachedClusterTransportSettings, + settings.importAttachedClusterSettings(), + clientContext); + this.importAttachedClusterOperationCallable = + callableFactory.createOperationCallable( + importAttachedClusterTransportSettings, + settings.importAttachedClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getAttachedClusterCallable = + callableFactory.createUnaryCallable( + getAttachedClusterTransportSettings, + settings.getAttachedClusterSettings(), + clientContext); + this.listAttachedClustersCallable = + callableFactory.createUnaryCallable( + listAttachedClustersTransportSettings, + settings.listAttachedClustersSettings(), + clientContext); + this.listAttachedClustersPagedCallable = + callableFactory.createPagedCallable( + listAttachedClustersTransportSettings, + settings.listAttachedClustersSettings(), + clientContext); + this.deleteAttachedClusterCallable = + callableFactory.createUnaryCallable( + deleteAttachedClusterTransportSettings, + settings.deleteAttachedClusterSettings(), + clientContext); + this.deleteAttachedClusterOperationCallable = + callableFactory.createOperationCallable( + deleteAttachedClusterTransportSettings, + settings.deleteAttachedClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getAttachedServerConfigCallable = + callableFactory.createUnaryCallable( + getAttachedServerConfigTransportSettings, + settings.getAttachedServerConfigSettings(), + clientContext); + this.generateAttachedClusterInstallManifestCallable = + callableFactory.createUnaryCallable( + generateAttachedClusterInstallManifestTransportSettings, + settings.generateAttachedClusterInstallManifestSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createAttachedClusterMethodDescriptor); + methodDescriptors.add(updateAttachedClusterMethodDescriptor); + methodDescriptors.add(importAttachedClusterMethodDescriptor); + methodDescriptors.add(getAttachedClusterMethodDescriptor); + methodDescriptors.add(listAttachedClustersMethodDescriptor); + methodDescriptors.add(deleteAttachedClusterMethodDescriptor); + methodDescriptors.add(getAttachedServerConfigMethodDescriptor); + methodDescriptors.add(generateAttachedClusterInstallManifestMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable createAttachedClusterCallable() { + return createAttachedClusterCallable; + } + + @Override + public OperationCallable + createAttachedClusterOperationCallable() { + return createAttachedClusterOperationCallable; + } + + @Override + public UnaryCallable updateAttachedClusterCallable() { + return updateAttachedClusterCallable; + } + + @Override + public OperationCallable + updateAttachedClusterOperationCallable() { + return updateAttachedClusterOperationCallable; + } + + @Override + public UnaryCallable importAttachedClusterCallable() { + return importAttachedClusterCallable; + } + + @Override + public OperationCallable + importAttachedClusterOperationCallable() { + return importAttachedClusterOperationCallable; + } + + @Override + public UnaryCallable getAttachedClusterCallable() { + return getAttachedClusterCallable; + } + + @Override + public UnaryCallable + listAttachedClustersCallable() { + return listAttachedClustersCallable; + } + + @Override + public UnaryCallable + listAttachedClustersPagedCallable() { + return listAttachedClustersPagedCallable; + } + + @Override + public UnaryCallable deleteAttachedClusterCallable() { + return deleteAttachedClusterCallable; + } + + @Override + public OperationCallable + deleteAttachedClusterOperationCallable() { + return deleteAttachedClusterOperationCallable; + } + + @Override + public UnaryCallable + getAttachedServerConfigCallable() { + return getAttachedServerConfigCallable; + } + + @Override + public UnaryCallable< + GenerateAttachedClusterInstallManifestRequest, + GenerateAttachedClusterInstallManifestResponse> + generateAttachedClusterInstallManifestCallable() { + return generateAttachedClusterInstallManifestCallable; + } + + @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-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/AttachedClustersClientHttpJsonTest.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/AttachedClustersClientHttpJsonTest.java new file mode 100644 index 000000000000..7e63020cd825 --- /dev/null +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/AttachedClustersClientHttpJsonTest.java @@ -0,0 +1,997 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1; + +import static com.google.cloud.gkemulticloud.v1.AttachedClustersClient.ListAttachedClustersPagedResponse; + +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.gkemulticloud.v1.stub.HttpJsonAttachedClustersStub; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +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.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 AttachedClustersClientHttpJsonTest { + private static MockHttpService mockService; + private static AttachedClustersClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonAttachedClustersStub.getMethodDescriptors(), + AttachedClustersSettings.getDefaultEndpoint()); + AttachedClustersSettings settings = + AttachedClustersSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + AttachedClustersSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AttachedClustersClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createAttachedClusterTest() throws Exception { + AttachedCluster expectedResponse = + AttachedCluster.newBuilder() + .setName( + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]").toString()) + .setDescription("description-1724546052") + .setOidcConfig(AttachedOidcConfig.newBuilder().build()) + .setPlatformVersion("platformVersion1848800485") + .setDistribution("distribution-1580708220") + .setClusterRegion("clusterRegion-1876082290") + .setFleet(Fleet.newBuilder().build()) + .setUid("uid115792") + .setReconciling(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setKubernetesVersion("kubernetesVersion-424816974") + .putAllAnnotations(new HashMap()) + .setWorkloadIdentityConfig(WorkloadIdentityConfig.newBuilder().build()) + .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setAuthorization(AttachedClustersAuthorization.newBuilder().build()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAttachedClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AttachedCluster attachedCluster = AttachedCluster.newBuilder().build(); + String attachedClusterId = "attachedClusterId865943409"; + + AttachedCluster actualResponse = + client.createAttachedClusterAsync(parent, attachedCluster, attachedClusterId).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 createAttachedClusterExceptionTest() 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]"); + AttachedCluster attachedCluster = AttachedCluster.newBuilder().build(); + String attachedClusterId = "attachedClusterId865943409"; + client.createAttachedClusterAsync(parent, attachedCluster, attachedClusterId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createAttachedClusterTest2() throws Exception { + AttachedCluster expectedResponse = + AttachedCluster.newBuilder() + .setName( + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]").toString()) + .setDescription("description-1724546052") + .setOidcConfig(AttachedOidcConfig.newBuilder().build()) + .setPlatformVersion("platformVersion1848800485") + .setDistribution("distribution-1580708220") + .setClusterRegion("clusterRegion-1876082290") + .setFleet(Fleet.newBuilder().build()) + .setUid("uid115792") + .setReconciling(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setKubernetesVersion("kubernetesVersion-424816974") + .putAllAnnotations(new HashMap()) + .setWorkloadIdentityConfig(WorkloadIdentityConfig.newBuilder().build()) + .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setAuthorization(AttachedClustersAuthorization.newBuilder().build()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAttachedClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + AttachedCluster attachedCluster = AttachedCluster.newBuilder().build(); + String attachedClusterId = "attachedClusterId865943409"; + + AttachedCluster actualResponse = + client.createAttachedClusterAsync(parent, attachedCluster, attachedClusterId).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 createAttachedClusterExceptionTest2() 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"; + AttachedCluster attachedCluster = AttachedCluster.newBuilder().build(); + String attachedClusterId = "attachedClusterId865943409"; + client.createAttachedClusterAsync(parent, attachedCluster, attachedClusterId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateAttachedClusterTest() throws Exception { + AttachedCluster expectedResponse = + AttachedCluster.newBuilder() + .setName( + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]").toString()) + .setDescription("description-1724546052") + .setOidcConfig(AttachedOidcConfig.newBuilder().build()) + .setPlatformVersion("platformVersion1848800485") + .setDistribution("distribution-1580708220") + .setClusterRegion("clusterRegion-1876082290") + .setFleet(Fleet.newBuilder().build()) + .setUid("uid115792") + .setReconciling(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setKubernetesVersion("kubernetesVersion-424816974") + .putAllAnnotations(new HashMap()) + .setWorkloadIdentityConfig(WorkloadIdentityConfig.newBuilder().build()) + .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setAuthorization(AttachedClustersAuthorization.newBuilder().build()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateAttachedClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AttachedCluster attachedCluster = + AttachedCluster.newBuilder() + .setName( + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]").toString()) + .setDescription("description-1724546052") + .setOidcConfig(AttachedOidcConfig.newBuilder().build()) + .setPlatformVersion("platformVersion1848800485") + .setDistribution("distribution-1580708220") + .setClusterRegion("clusterRegion-1876082290") + .setFleet(Fleet.newBuilder().build()) + .setUid("uid115792") + .setReconciling(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setKubernetesVersion("kubernetesVersion-424816974") + .putAllAnnotations(new HashMap()) + .setWorkloadIdentityConfig(WorkloadIdentityConfig.newBuilder().build()) + .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setAuthorization(AttachedClustersAuthorization.newBuilder().build()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AttachedCluster actualResponse = + client.updateAttachedClusterAsync(attachedCluster, 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 updateAttachedClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AttachedCluster attachedCluster = + AttachedCluster.newBuilder() + .setName( + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]") + .toString()) + .setDescription("description-1724546052") + .setOidcConfig(AttachedOidcConfig.newBuilder().build()) + .setPlatformVersion("platformVersion1848800485") + .setDistribution("distribution-1580708220") + .setClusterRegion("clusterRegion-1876082290") + .setFleet(Fleet.newBuilder().build()) + .setUid("uid115792") + .setReconciling(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setKubernetesVersion("kubernetesVersion-424816974") + .putAllAnnotations(new HashMap()) + .setWorkloadIdentityConfig(WorkloadIdentityConfig.newBuilder().build()) + .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setAuthorization(AttachedClustersAuthorization.newBuilder().build()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAttachedClusterAsync(attachedCluster, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void importAttachedClusterTest() throws Exception { + AttachedCluster expectedResponse = + AttachedCluster.newBuilder() + .setName( + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]").toString()) + .setDescription("description-1724546052") + .setOidcConfig(AttachedOidcConfig.newBuilder().build()) + .setPlatformVersion("platformVersion1848800485") + .setDistribution("distribution-1580708220") + .setClusterRegion("clusterRegion-1876082290") + .setFleet(Fleet.newBuilder().build()) + .setUid("uid115792") + .setReconciling(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setKubernetesVersion("kubernetesVersion-424816974") + .putAllAnnotations(new HashMap()) + .setWorkloadIdentityConfig(WorkloadIdentityConfig.newBuilder().build()) + .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setAuthorization(AttachedClustersAuthorization.newBuilder().build()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importAttachedClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String fleetMembership = "fleetMembership-665479228"; + + AttachedCluster actualResponse = + client.importAttachedClusterAsync(parent, fleetMembership).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 importAttachedClusterExceptionTest() 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]"); + String fleetMembership = "fleetMembership-665479228"; + client.importAttachedClusterAsync(parent, fleetMembership).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void importAttachedClusterTest2() throws Exception { + AttachedCluster expectedResponse = + AttachedCluster.newBuilder() + .setName( + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]").toString()) + .setDescription("description-1724546052") + .setOidcConfig(AttachedOidcConfig.newBuilder().build()) + .setPlatformVersion("platformVersion1848800485") + .setDistribution("distribution-1580708220") + .setClusterRegion("clusterRegion-1876082290") + .setFleet(Fleet.newBuilder().build()) + .setUid("uid115792") + .setReconciling(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setKubernetesVersion("kubernetesVersion-424816974") + .putAllAnnotations(new HashMap()) + .setWorkloadIdentityConfig(WorkloadIdentityConfig.newBuilder().build()) + .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setAuthorization(AttachedClustersAuthorization.newBuilder().build()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importAttachedClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + String fleetMembership = "fleetMembership-665479228"; + + AttachedCluster actualResponse = + client.importAttachedClusterAsync(parent, fleetMembership).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 importAttachedClusterExceptionTest2() 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"; + String fleetMembership = "fleetMembership-665479228"; + client.importAttachedClusterAsync(parent, fleetMembership).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getAttachedClusterTest() throws Exception { + AttachedCluster expectedResponse = + AttachedCluster.newBuilder() + .setName( + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]").toString()) + .setDescription("description-1724546052") + .setOidcConfig(AttachedOidcConfig.newBuilder().build()) + .setPlatformVersion("platformVersion1848800485") + .setDistribution("distribution-1580708220") + .setClusterRegion("clusterRegion-1876082290") + .setFleet(Fleet.newBuilder().build()) + .setUid("uid115792") + .setReconciling(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setKubernetesVersion("kubernetesVersion-424816974") + .putAllAnnotations(new HashMap()) + .setWorkloadIdentityConfig(WorkloadIdentityConfig.newBuilder().build()) + .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setAuthorization(AttachedClustersAuthorization.newBuilder().build()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + AttachedClusterName name = + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]"); + + AttachedCluster actualResponse = client.getAttachedCluster(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 getAttachedClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AttachedClusterName name = + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]"); + client.getAttachedCluster(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAttachedClusterTest2() throws Exception { + AttachedCluster expectedResponse = + AttachedCluster.newBuilder() + .setName( + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]").toString()) + .setDescription("description-1724546052") + .setOidcConfig(AttachedOidcConfig.newBuilder().build()) + .setPlatformVersion("platformVersion1848800485") + .setDistribution("distribution-1580708220") + .setClusterRegion("clusterRegion-1876082290") + .setFleet(Fleet.newBuilder().build()) + .setUid("uid115792") + .setReconciling(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setKubernetesVersion("kubernetesVersion-424816974") + .putAllAnnotations(new HashMap()) + .setWorkloadIdentityConfig(WorkloadIdentityConfig.newBuilder().build()) + .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setAuthorization(AttachedClustersAuthorization.newBuilder().build()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8899/locations/location-8899/attachedClusters/attachedCluster-8899"; + + AttachedCluster actualResponse = client.getAttachedCluster(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 getAttachedClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8899/locations/location-8899/attachedClusters/attachedCluster-8899"; + client.getAttachedCluster(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAttachedClustersTest() throws Exception { + AttachedCluster responsesElement = AttachedCluster.newBuilder().build(); + ListAttachedClustersResponse expectedResponse = + ListAttachedClustersResponse.newBuilder() + .setNextPageToken("") + .addAllAttachedClusters(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAttachedClustersPagedResponse pagedListResponse = client.listAttachedClusters(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAttachedClustersList().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 listAttachedClustersExceptionTest() 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.listAttachedClusters(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAttachedClustersTest2() throws Exception { + AttachedCluster responsesElement = AttachedCluster.newBuilder().build(); + ListAttachedClustersResponse expectedResponse = + ListAttachedClustersResponse.newBuilder() + .setNextPageToken("") + .addAllAttachedClusters(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListAttachedClustersPagedResponse pagedListResponse = client.listAttachedClusters(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAttachedClustersList().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 listAttachedClustersExceptionTest2() 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.listAttachedClusters(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAttachedClusterTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAttachedClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AttachedClusterName name = + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]"); + + client.deleteAttachedClusterAsync(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 deleteAttachedClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AttachedClusterName name = + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]"); + client.deleteAttachedClusterAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteAttachedClusterTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAttachedClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-8899/locations/location-8899/attachedClusters/attachedCluster-8899"; + + client.deleteAttachedClusterAsync(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 deleteAttachedClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8899/locations/location-8899/attachedClusters/attachedCluster-8899"; + client.deleteAttachedClusterAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getAttachedServerConfigTest() throws Exception { + AttachedServerConfig expectedResponse = + AttachedServerConfig.newBuilder() + .setName(AttachedServerConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllValidVersions(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + AttachedServerConfigName name = AttachedServerConfigName.of("[PROJECT]", "[LOCATION]"); + + AttachedServerConfig actualResponse = client.getAttachedServerConfig(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 getAttachedServerConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AttachedServerConfigName name = AttachedServerConfigName.of("[PROJECT]", "[LOCATION]"); + client.getAttachedServerConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAttachedServerConfigTest2() throws Exception { + AttachedServerConfig expectedResponse = + AttachedServerConfig.newBuilder() + .setName(AttachedServerConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllValidVersions(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-9678/locations/location-9678/attachedServerConfig"; + + AttachedServerConfig actualResponse = client.getAttachedServerConfig(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 getAttachedServerConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-9678/locations/location-9678/attachedServerConfig"; + client.getAttachedServerConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void generateAttachedClusterInstallManifestTest() throws Exception { + GenerateAttachedClusterInstallManifestResponse expectedResponse = + GenerateAttachedClusterInstallManifestResponse.newBuilder() + .setManifest("manifest130625071") + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String attachedClusterId = "attachedClusterId865943409"; + + GenerateAttachedClusterInstallManifestResponse actualResponse = + client.generateAttachedClusterInstallManifest(parent, attachedClusterId); + 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 generateAttachedClusterInstallManifestExceptionTest() 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]"); + String attachedClusterId = "attachedClusterId865943409"; + client.generateAttachedClusterInstallManifest(parent, attachedClusterId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void generateAttachedClusterInstallManifestTest2() throws Exception { + GenerateAttachedClusterInstallManifestResponse expectedResponse = + GenerateAttachedClusterInstallManifestResponse.newBuilder() + .setManifest("manifest130625071") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + String attachedClusterId = "attachedClusterId865943409"; + + GenerateAttachedClusterInstallManifestResponse actualResponse = + client.generateAttachedClusterInstallManifest(parent, attachedClusterId); + 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 generateAttachedClusterInstallManifestExceptionTest2() 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"; + String attachedClusterId = "attachedClusterId865943409"; + client.generateAttachedClusterInstallManifest(parent, attachedClusterId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/AttachedClustersClientTest.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/AttachedClustersClientTest.java new file mode 100644 index 000000000000..4c194a15dd0c --- /dev/null +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/AttachedClustersClientTest.java @@ -0,0 +1,905 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1; + +import static com.google.cloud.gkemulticloud.v1.AttachedClustersClient.ListAttachedClustersPagedResponse; + +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.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +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 AttachedClustersClientTest { + private static MockAttachedClusters mockAttachedClusters; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private AttachedClustersClient client; + + @BeforeClass + public static void startStaticServer() { + mockAttachedClusters = new MockAttachedClusters(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockAttachedClusters)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + AttachedClustersSettings settings = + AttachedClustersSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AttachedClustersClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createAttachedClusterTest() throws Exception { + AttachedCluster expectedResponse = + AttachedCluster.newBuilder() + .setName( + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]").toString()) + .setDescription("description-1724546052") + .setOidcConfig(AttachedOidcConfig.newBuilder().build()) + .setPlatformVersion("platformVersion1848800485") + .setDistribution("distribution-1580708220") + .setClusterRegion("clusterRegion-1876082290") + .setFleet(Fleet.newBuilder().build()) + .setUid("uid115792") + .setReconciling(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setKubernetesVersion("kubernetesVersion-424816974") + .putAllAnnotations(new HashMap()) + .setWorkloadIdentityConfig(WorkloadIdentityConfig.newBuilder().build()) + .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setAuthorization(AttachedClustersAuthorization.newBuilder().build()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAttachedClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAttachedClusters.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AttachedCluster attachedCluster = AttachedCluster.newBuilder().build(); + String attachedClusterId = "attachedClusterId865943409"; + + AttachedCluster actualResponse = + client.createAttachedClusterAsync(parent, attachedCluster, attachedClusterId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAttachedClusters.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAttachedClusterRequest actualRequest = + ((CreateAttachedClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(attachedCluster, actualRequest.getAttachedCluster()); + Assert.assertEquals(attachedClusterId, actualRequest.getAttachedClusterId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAttachedClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAttachedClusters.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AttachedCluster attachedCluster = AttachedCluster.newBuilder().build(); + String attachedClusterId = "attachedClusterId865943409"; + client.createAttachedClusterAsync(parent, attachedCluster, attachedClusterId).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 createAttachedClusterTest2() throws Exception { + AttachedCluster expectedResponse = + AttachedCluster.newBuilder() + .setName( + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]").toString()) + .setDescription("description-1724546052") + .setOidcConfig(AttachedOidcConfig.newBuilder().build()) + .setPlatformVersion("platformVersion1848800485") + .setDistribution("distribution-1580708220") + .setClusterRegion("clusterRegion-1876082290") + .setFleet(Fleet.newBuilder().build()) + .setUid("uid115792") + .setReconciling(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setKubernetesVersion("kubernetesVersion-424816974") + .putAllAnnotations(new HashMap()) + .setWorkloadIdentityConfig(WorkloadIdentityConfig.newBuilder().build()) + .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setAuthorization(AttachedClustersAuthorization.newBuilder().build()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAttachedClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAttachedClusters.addResponse(resultOperation); + + String parent = "parent-995424086"; + AttachedCluster attachedCluster = AttachedCluster.newBuilder().build(); + String attachedClusterId = "attachedClusterId865943409"; + + AttachedCluster actualResponse = + client.createAttachedClusterAsync(parent, attachedCluster, attachedClusterId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAttachedClusters.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAttachedClusterRequest actualRequest = + ((CreateAttachedClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(attachedCluster, actualRequest.getAttachedCluster()); + Assert.assertEquals(attachedClusterId, actualRequest.getAttachedClusterId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAttachedClusterExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAttachedClusters.addException(exception); + + try { + String parent = "parent-995424086"; + AttachedCluster attachedCluster = AttachedCluster.newBuilder().build(); + String attachedClusterId = "attachedClusterId865943409"; + client.createAttachedClusterAsync(parent, attachedCluster, attachedClusterId).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 updateAttachedClusterTest() throws Exception { + AttachedCluster expectedResponse = + AttachedCluster.newBuilder() + .setName( + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]").toString()) + .setDescription("description-1724546052") + .setOidcConfig(AttachedOidcConfig.newBuilder().build()) + .setPlatformVersion("platformVersion1848800485") + .setDistribution("distribution-1580708220") + .setClusterRegion("clusterRegion-1876082290") + .setFleet(Fleet.newBuilder().build()) + .setUid("uid115792") + .setReconciling(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setKubernetesVersion("kubernetesVersion-424816974") + .putAllAnnotations(new HashMap()) + .setWorkloadIdentityConfig(WorkloadIdentityConfig.newBuilder().build()) + .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setAuthorization(AttachedClustersAuthorization.newBuilder().build()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateAttachedClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAttachedClusters.addResponse(resultOperation); + + AttachedCluster attachedCluster = AttachedCluster.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AttachedCluster actualResponse = + client.updateAttachedClusterAsync(attachedCluster, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAttachedClusters.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateAttachedClusterRequest actualRequest = + ((UpdateAttachedClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(attachedCluster, actualRequest.getAttachedCluster()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateAttachedClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAttachedClusters.addException(exception); + + try { + AttachedCluster attachedCluster = AttachedCluster.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAttachedClusterAsync(attachedCluster, 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 importAttachedClusterTest() throws Exception { + AttachedCluster expectedResponse = + AttachedCluster.newBuilder() + .setName( + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]").toString()) + .setDescription("description-1724546052") + .setOidcConfig(AttachedOidcConfig.newBuilder().build()) + .setPlatformVersion("platformVersion1848800485") + .setDistribution("distribution-1580708220") + .setClusterRegion("clusterRegion-1876082290") + .setFleet(Fleet.newBuilder().build()) + .setUid("uid115792") + .setReconciling(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setKubernetesVersion("kubernetesVersion-424816974") + .putAllAnnotations(new HashMap()) + .setWorkloadIdentityConfig(WorkloadIdentityConfig.newBuilder().build()) + .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setAuthorization(AttachedClustersAuthorization.newBuilder().build()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importAttachedClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAttachedClusters.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String fleetMembership = "fleetMembership-665479228"; + + AttachedCluster actualResponse = + client.importAttachedClusterAsync(parent, fleetMembership).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAttachedClusters.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportAttachedClusterRequest actualRequest = + ((ImportAttachedClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(fleetMembership, actualRequest.getFleetMembership()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importAttachedClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAttachedClusters.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String fleetMembership = "fleetMembership-665479228"; + client.importAttachedClusterAsync(parent, fleetMembership).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 importAttachedClusterTest2() throws Exception { + AttachedCluster expectedResponse = + AttachedCluster.newBuilder() + .setName( + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]").toString()) + .setDescription("description-1724546052") + .setOidcConfig(AttachedOidcConfig.newBuilder().build()) + .setPlatformVersion("platformVersion1848800485") + .setDistribution("distribution-1580708220") + .setClusterRegion("clusterRegion-1876082290") + .setFleet(Fleet.newBuilder().build()) + .setUid("uid115792") + .setReconciling(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setKubernetesVersion("kubernetesVersion-424816974") + .putAllAnnotations(new HashMap()) + .setWorkloadIdentityConfig(WorkloadIdentityConfig.newBuilder().build()) + .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setAuthorization(AttachedClustersAuthorization.newBuilder().build()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importAttachedClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAttachedClusters.addResponse(resultOperation); + + String parent = "parent-995424086"; + String fleetMembership = "fleetMembership-665479228"; + + AttachedCluster actualResponse = + client.importAttachedClusterAsync(parent, fleetMembership).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAttachedClusters.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportAttachedClusterRequest actualRequest = + ((ImportAttachedClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(fleetMembership, actualRequest.getFleetMembership()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importAttachedClusterExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAttachedClusters.addException(exception); + + try { + String parent = "parent-995424086"; + String fleetMembership = "fleetMembership-665479228"; + client.importAttachedClusterAsync(parent, fleetMembership).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 getAttachedClusterTest() throws Exception { + AttachedCluster expectedResponse = + AttachedCluster.newBuilder() + .setName( + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]").toString()) + .setDescription("description-1724546052") + .setOidcConfig(AttachedOidcConfig.newBuilder().build()) + .setPlatformVersion("platformVersion1848800485") + .setDistribution("distribution-1580708220") + .setClusterRegion("clusterRegion-1876082290") + .setFleet(Fleet.newBuilder().build()) + .setUid("uid115792") + .setReconciling(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setKubernetesVersion("kubernetesVersion-424816974") + .putAllAnnotations(new HashMap()) + .setWorkloadIdentityConfig(WorkloadIdentityConfig.newBuilder().build()) + .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setAuthorization(AttachedClustersAuthorization.newBuilder().build()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) + .build(); + mockAttachedClusters.addResponse(expectedResponse); + + AttachedClusterName name = + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]"); + + AttachedCluster actualResponse = client.getAttachedCluster(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAttachedClusters.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAttachedClusterRequest actualRequest = ((GetAttachedClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAttachedClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAttachedClusters.addException(exception); + + try { + AttachedClusterName name = + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]"); + client.getAttachedCluster(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAttachedClusterTest2() throws Exception { + AttachedCluster expectedResponse = + AttachedCluster.newBuilder() + .setName( + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]").toString()) + .setDescription("description-1724546052") + .setOidcConfig(AttachedOidcConfig.newBuilder().build()) + .setPlatformVersion("platformVersion1848800485") + .setDistribution("distribution-1580708220") + .setClusterRegion("clusterRegion-1876082290") + .setFleet(Fleet.newBuilder().build()) + .setUid("uid115792") + .setReconciling(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setKubernetesVersion("kubernetesVersion-424816974") + .putAllAnnotations(new HashMap()) + .setWorkloadIdentityConfig(WorkloadIdentityConfig.newBuilder().build()) + .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setAuthorization(AttachedClustersAuthorization.newBuilder().build()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) + .build(); + mockAttachedClusters.addResponse(expectedResponse); + + String name = "name3373707"; + + AttachedCluster actualResponse = client.getAttachedCluster(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAttachedClusters.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAttachedClusterRequest actualRequest = ((GetAttachedClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAttachedClusterExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAttachedClusters.addException(exception); + + try { + String name = "name3373707"; + client.getAttachedCluster(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAttachedClustersTest() throws Exception { + AttachedCluster responsesElement = AttachedCluster.newBuilder().build(); + ListAttachedClustersResponse expectedResponse = + ListAttachedClustersResponse.newBuilder() + .setNextPageToken("") + .addAllAttachedClusters(Arrays.asList(responsesElement)) + .build(); + mockAttachedClusters.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAttachedClustersPagedResponse pagedListResponse = client.listAttachedClusters(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAttachedClustersList().get(0), resources.get(0)); + + List actualRequests = mockAttachedClusters.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAttachedClustersRequest actualRequest = + ((ListAttachedClustersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAttachedClustersExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAttachedClusters.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAttachedClusters(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAttachedClustersTest2() throws Exception { + AttachedCluster responsesElement = AttachedCluster.newBuilder().build(); + ListAttachedClustersResponse expectedResponse = + ListAttachedClustersResponse.newBuilder() + .setNextPageToken("") + .addAllAttachedClusters(Arrays.asList(responsesElement)) + .build(); + mockAttachedClusters.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAttachedClustersPagedResponse pagedListResponse = client.listAttachedClusters(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAttachedClustersList().get(0), resources.get(0)); + + List actualRequests = mockAttachedClusters.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAttachedClustersRequest actualRequest = + ((ListAttachedClustersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAttachedClustersExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAttachedClusters.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAttachedClusters(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAttachedClusterTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAttachedClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAttachedClusters.addResponse(resultOperation); + + AttachedClusterName name = + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]"); + + client.deleteAttachedClusterAsync(name).get(); + + List actualRequests = mockAttachedClusters.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAttachedClusterRequest actualRequest = + ((DeleteAttachedClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAttachedClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAttachedClusters.addException(exception); + + try { + AttachedClusterName name = + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]"); + client.deleteAttachedClusterAsync(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 deleteAttachedClusterTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAttachedClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAttachedClusters.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteAttachedClusterAsync(name).get(); + + List actualRequests = mockAttachedClusters.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAttachedClusterRequest actualRequest = + ((DeleteAttachedClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAttachedClusterExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAttachedClusters.addException(exception); + + try { + String name = "name3373707"; + client.deleteAttachedClusterAsync(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 getAttachedServerConfigTest() throws Exception { + AttachedServerConfig expectedResponse = + AttachedServerConfig.newBuilder() + .setName(AttachedServerConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllValidVersions(new ArrayList()) + .build(); + mockAttachedClusters.addResponse(expectedResponse); + + AttachedServerConfigName name = AttachedServerConfigName.of("[PROJECT]", "[LOCATION]"); + + AttachedServerConfig actualResponse = client.getAttachedServerConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAttachedClusters.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAttachedServerConfigRequest actualRequest = + ((GetAttachedServerConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAttachedServerConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAttachedClusters.addException(exception); + + try { + AttachedServerConfigName name = AttachedServerConfigName.of("[PROJECT]", "[LOCATION]"); + client.getAttachedServerConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAttachedServerConfigTest2() throws Exception { + AttachedServerConfig expectedResponse = + AttachedServerConfig.newBuilder() + .setName(AttachedServerConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllValidVersions(new ArrayList()) + .build(); + mockAttachedClusters.addResponse(expectedResponse); + + String name = "name3373707"; + + AttachedServerConfig actualResponse = client.getAttachedServerConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAttachedClusters.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAttachedServerConfigRequest actualRequest = + ((GetAttachedServerConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAttachedServerConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAttachedClusters.addException(exception); + + try { + String name = "name3373707"; + client.getAttachedServerConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void generateAttachedClusterInstallManifestTest() throws Exception { + GenerateAttachedClusterInstallManifestResponse expectedResponse = + GenerateAttachedClusterInstallManifestResponse.newBuilder() + .setManifest("manifest130625071") + .build(); + mockAttachedClusters.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String attachedClusterId = "attachedClusterId865943409"; + + GenerateAttachedClusterInstallManifestResponse actualResponse = + client.generateAttachedClusterInstallManifest(parent, attachedClusterId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAttachedClusters.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GenerateAttachedClusterInstallManifestRequest actualRequest = + ((GenerateAttachedClusterInstallManifestRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(attachedClusterId, actualRequest.getAttachedClusterId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void generateAttachedClusterInstallManifestExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAttachedClusters.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String attachedClusterId = "attachedClusterId865943409"; + client.generateAttachedClusterInstallManifest(parent, attachedClusterId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void generateAttachedClusterInstallManifestTest2() throws Exception { + GenerateAttachedClusterInstallManifestResponse expectedResponse = + GenerateAttachedClusterInstallManifestResponse.newBuilder() + .setManifest("manifest130625071") + .build(); + mockAttachedClusters.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String attachedClusterId = "attachedClusterId865943409"; + + GenerateAttachedClusterInstallManifestResponse actualResponse = + client.generateAttachedClusterInstallManifest(parent, attachedClusterId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAttachedClusters.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GenerateAttachedClusterInstallManifestRequest actualRequest = + ((GenerateAttachedClusterInstallManifestRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(attachedClusterId, actualRequest.getAttachedClusterId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void generateAttachedClusterInstallManifestExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAttachedClusters.addException(exception); + + try { + String parent = "parent-995424086"; + String attachedClusterId = "attachedClusterId865943409"; + client.generateAttachedClusterInstallManifest(parent, attachedClusterId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/AwsClustersClientHttpJsonTest.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/AwsClustersClientHttpJsonTest.java index d45b2cb96a2d..94fdb06d05a6 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/AwsClustersClientHttpJsonTest.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/AwsClustersClientHttpJsonTest.java @@ -105,6 +105,8 @@ public void createAwsClusterTest() throws Exception { .setClusterCaCertificate("clusterCaCertificate-683492737") .setFleet(Fleet.newBuilder().build()) .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -175,6 +177,8 @@ public void createAwsClusterTest2() throws Exception { .setClusterCaCertificate("clusterCaCertificate-683492737") .setFleet(Fleet.newBuilder().build()) .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -245,6 +249,8 @@ public void updateAwsClusterTest() throws Exception { .setClusterCaCertificate("clusterCaCertificate-683492737") .setFleet(Fleet.newBuilder().build()) .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -273,6 +279,8 @@ public void updateAwsClusterTest() throws Exception { .setClusterCaCertificate("clusterCaCertificate-683492737") .setFleet(Fleet.newBuilder().build()) .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -321,6 +329,8 @@ public void updateAwsClusterExceptionTest() throws Exception { .setClusterCaCertificate("clusterCaCertificate-683492737") .setFleet(Fleet.newBuilder().build()) .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateAwsClusterAsync(awsCluster, updateMask).get(); @@ -350,6 +360,8 @@ public void getAwsClusterTest() throws Exception { .setClusterCaCertificate("clusterCaCertificate-683492737") .setFleet(Fleet.newBuilder().build()) .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -410,6 +422,8 @@ public void getAwsClusterTest2() throws Exception { .setClusterCaCertificate("clusterCaCertificate-683492737") .setFleet(Fleet.newBuilder().build()) .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -709,6 +723,7 @@ public void createAwsNodePoolTest() throws Exception { .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) + .addAllErrors(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -776,6 +791,7 @@ public void createAwsNodePoolTest2() throws Exception { .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) + .addAllErrors(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -843,6 +859,7 @@ public void updateAwsNodePoolTest() throws Exception { .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) + .addAllErrors(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -868,6 +885,7 @@ public void updateAwsNodePoolTest() throws Exception { .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) + .addAllErrors(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -913,6 +931,7 @@ public void updateAwsNodePoolExceptionTest() throws Exception { .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) + .addAllErrors(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateAwsNodePoolAsync(awsNodePool, updateMask).get(); @@ -939,6 +958,7 @@ public void getAwsNodePoolTest() throws Exception { .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) + .addAllErrors(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -998,6 +1018,7 @@ public void getAwsNodePoolTest2() throws Exception { .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) + .addAllErrors(new ArrayList()) .build(); mockService.addResponse(expectedResponse); diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/AwsClustersClientTest.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/AwsClustersClientTest.java index 6b1279ece592..aeced16e5fef 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/AwsClustersClientTest.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/AwsClustersClientTest.java @@ -109,6 +109,8 @@ public void createAwsClusterTest() throws Exception { .setClusterCaCertificate("clusterCaCertificate-683492737") .setFleet(Fleet.newBuilder().build()) .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -178,6 +180,8 @@ public void createAwsClusterTest2() throws Exception { .setClusterCaCertificate("clusterCaCertificate-683492737") .setFleet(Fleet.newBuilder().build()) .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -247,6 +251,8 @@ public void updateAwsClusterTest() throws Exception { .setClusterCaCertificate("clusterCaCertificate-683492737") .setFleet(Fleet.newBuilder().build()) .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -312,6 +318,8 @@ public void getAwsClusterTest() throws Exception { .setClusterCaCertificate("clusterCaCertificate-683492737") .setFleet(Fleet.newBuilder().build()) .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) .build(); mockAwsClusters.addResponse(expectedResponse); @@ -366,6 +374,8 @@ public void getAwsClusterTest2() throws Exception { .setClusterCaCertificate("clusterCaCertificate-683492737") .setFleet(Fleet.newBuilder().build()) .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) .build(); mockAwsClusters.addResponse(expectedResponse); @@ -636,6 +646,7 @@ public void createAwsNodePoolTest() throws Exception { .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) + .addAllErrors(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -702,6 +713,7 @@ public void createAwsNodePoolTest2() throws Exception { .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) + .addAllErrors(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -768,6 +780,7 @@ public void updateAwsNodePoolTest() throws Exception { .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) + .addAllErrors(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -830,6 +843,7 @@ public void getAwsNodePoolTest() throws Exception { .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) + .addAllErrors(new ArrayList()) .build(); mockAwsClusters.addResponse(expectedResponse); @@ -883,6 +897,7 @@ public void getAwsNodePoolTest2() throws Exception { .setEtag("etag3123477") .putAllAnnotations(new HashMap()) .setMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) + .addAllErrors(new ArrayList()) .build(); mockAwsClusters.addResponse(expectedResponse); diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/AzureClustersClientHttpJsonTest.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/AzureClustersClientHttpJsonTest.java index d1405e2f38be..cf98c5ee19a6 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/AzureClustersClientHttpJsonTest.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/AzureClustersClientHttpJsonTest.java @@ -519,6 +519,8 @@ public void createAzureClusterTest() throws Exception { .setFleet(Fleet.newBuilder().build()) .setManagedResources(AzureClusterResources.newBuilder().build()) .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -592,6 +594,8 @@ public void createAzureClusterTest2() throws Exception { .setFleet(Fleet.newBuilder().build()) .setManagedResources(AzureClusterResources.newBuilder().build()) .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -665,6 +669,8 @@ public void updateAzureClusterTest() throws Exception { .setFleet(Fleet.newBuilder().build()) .setManagedResources(AzureClusterResources.newBuilder().build()) .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -696,6 +702,8 @@ public void updateAzureClusterTest() throws Exception { .setFleet(Fleet.newBuilder().build()) .setManagedResources(AzureClusterResources.newBuilder().build()) .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -747,6 +755,8 @@ public void updateAzureClusterExceptionTest() throws Exception { .setFleet(Fleet.newBuilder().build()) .setManagedResources(AzureClusterResources.newBuilder().build()) .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateAzureClusterAsync(azureCluster, updateMask).get(); @@ -779,6 +789,8 @@ public void getAzureClusterTest() throws Exception { .setFleet(Fleet.newBuilder().build()) .setManagedResources(AzureClusterResources.newBuilder().build()) .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -842,6 +854,8 @@ public void getAzureClusterTest2() throws Exception { .setFleet(Fleet.newBuilder().build()) .setManagedResources(AzureClusterResources.newBuilder().build()) .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1144,6 +1158,7 @@ public void createAzureNodePoolTest() throws Exception { .putAllAnnotations(new HashMap()) .setMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) .setAzureAvailabilityZone("azureAvailabilityZone-304222122") + .addAllErrors(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1213,6 +1228,7 @@ public void createAzureNodePoolTest2() throws Exception { .putAllAnnotations(new HashMap()) .setMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) .setAzureAvailabilityZone("azureAvailabilityZone-304222122") + .addAllErrors(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1283,6 +1299,7 @@ public void updateAzureNodePoolTest() throws Exception { .putAllAnnotations(new HashMap()) .setMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) .setAzureAvailabilityZone("azureAvailabilityZone-304222122") + .addAllErrors(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1310,6 +1327,7 @@ public void updateAzureNodePoolTest() throws Exception { .putAllAnnotations(new HashMap()) .setMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) .setAzureAvailabilityZone("azureAvailabilityZone-304222122") + .addAllErrors(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1357,6 +1375,7 @@ public void updateAzureNodePoolExceptionTest() throws Exception { .putAllAnnotations(new HashMap()) .setMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) .setAzureAvailabilityZone("azureAvailabilityZone-304222122") + .addAllErrors(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateAzureNodePoolAsync(azureNodePool, updateMask).get(); @@ -1385,6 +1404,7 @@ public void getAzureNodePoolTest() throws Exception { .putAllAnnotations(new HashMap()) .setMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) .setAzureAvailabilityZone("azureAvailabilityZone-304222122") + .addAllErrors(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -1446,6 +1466,7 @@ public void getAzureNodePoolTest2() throws Exception { .putAllAnnotations(new HashMap()) .setMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) .setAzureAvailabilityZone("azureAvailabilityZone-304222122") + .addAllErrors(new ArrayList()) .build(); mockService.addResponse(expectedResponse); diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/AzureClustersClientTest.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/AzureClustersClientTest.java index 6f8e736f6fc5..3fff116cffee 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/AzureClustersClientTest.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/AzureClustersClientTest.java @@ -491,6 +491,8 @@ public void createAzureClusterTest() throws Exception { .setFleet(Fleet.newBuilder().build()) .setManagedResources(AzureClusterResources.newBuilder().build()) .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -563,6 +565,8 @@ public void createAzureClusterTest2() throws Exception { .setFleet(Fleet.newBuilder().build()) .setManagedResources(AzureClusterResources.newBuilder().build()) .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -635,6 +639,8 @@ public void updateAzureClusterTest() throws Exception { .setFleet(Fleet.newBuilder().build()) .setManagedResources(AzureClusterResources.newBuilder().build()) .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -703,6 +709,8 @@ public void getAzureClusterTest() throws Exception { .setFleet(Fleet.newBuilder().build()) .setManagedResources(AzureClusterResources.newBuilder().build()) .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) .build(); mockAzureClusters.addResponse(expectedResponse); @@ -760,6 +768,8 @@ public void getAzureClusterTest2() throws Exception { .setFleet(Fleet.newBuilder().build()) .setManagedResources(AzureClusterResources.newBuilder().build()) .setLoggingConfig(LoggingConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) .build(); mockAzureClusters.addResponse(expectedResponse); @@ -1033,6 +1043,7 @@ public void createAzureNodePoolTest() throws Exception { .putAllAnnotations(new HashMap()) .setMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) .setAzureAvailabilityZone("azureAvailabilityZone-304222122") + .addAllErrors(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1101,6 +1112,7 @@ public void createAzureNodePoolTest2() throws Exception { .putAllAnnotations(new HashMap()) .setMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) .setAzureAvailabilityZone("azureAvailabilityZone-304222122") + .addAllErrors(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1169,6 +1181,7 @@ public void updateAzureNodePoolTest() throws Exception { .putAllAnnotations(new HashMap()) .setMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) .setAzureAvailabilityZone("azureAvailabilityZone-304222122") + .addAllErrors(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1233,6 +1246,7 @@ public void getAzureNodePoolTest() throws Exception { .putAllAnnotations(new HashMap()) .setMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) .setAzureAvailabilityZone("azureAvailabilityZone-304222122") + .addAllErrors(new ArrayList()) .build(); mockAzureClusters.addResponse(expectedResponse); @@ -1288,6 +1302,7 @@ public void getAzureNodePoolTest2() throws Exception { .putAllAnnotations(new HashMap()) .setMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) .setAzureAvailabilityZone("azureAvailabilityZone-304222122") + .addAllErrors(new ArrayList()) .build(); mockAzureClusters.addResponse(expectedResponse); diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/MockAttachedClusters.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/MockAttachedClusters.java new file mode 100644 index 000000000000..4cfe345eee1f --- /dev/null +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/MockAttachedClusters.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.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 MockAttachedClusters implements MockGrpcService { + private final MockAttachedClustersImpl serviceImpl; + + public MockAttachedClusters() { + serviceImpl = new MockAttachedClustersImpl(); + } + + @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-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/MockAttachedClustersImpl.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/MockAttachedClustersImpl.java new file mode 100644 index 000000000000..ececf3cbc44f --- /dev/null +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/MockAttachedClustersImpl.java @@ -0,0 +1,232 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.gkemulticloud.v1.AttachedClustersGrpc.AttachedClustersImplBase; +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 MockAttachedClustersImpl extends AttachedClustersImplBase { + private List requests; + private Queue responses; + + public MockAttachedClustersImpl() { + 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 createAttachedCluster( + CreateAttachedClusterRequest 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 CreateAttachedCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateAttachedCluster( + UpdateAttachedClusterRequest 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 UpdateAttachedCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void importAttachedCluster( + ImportAttachedClusterRequest 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 ImportAttachedCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAttachedCluster( + GetAttachedClusterRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AttachedCluster) { + requests.add(request); + responseObserver.onNext(((AttachedCluster) 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 GetAttachedCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AttachedCluster.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listAttachedClusters( + ListAttachedClustersRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAttachedClustersResponse) { + requests.add(request); + responseObserver.onNext(((ListAttachedClustersResponse) 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 ListAttachedClusters, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAttachedClustersResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteAttachedCluster( + DeleteAttachedClusterRequest 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 DeleteAttachedCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAttachedServerConfig( + GetAttachedServerConfigRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AttachedServerConfig) { + requests.add(request); + responseObserver.onNext(((AttachedServerConfig) 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 GetAttachedServerConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AttachedServerConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void generateAttachedClusterInstallManifest( + GenerateAttachedClusterInstallManifestRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof GenerateAttachedClusterInstallManifestResponse) { + requests.add(request); + responseObserver.onNext(((GenerateAttachedClusterInstallManifestResponse) 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 GenerateAttachedClusterInstallManifest, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + GenerateAttachedClusterInstallManifestResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersGrpc.java b/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersGrpc.java new file mode 100644 index 000000000000..73cd75ab7608 --- /dev/null +++ b/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersGrpc.java @@ -0,0 +1,1331 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.gkemulticloud.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * The AttachedClusters API provides a single centrally managed service
+ * to register and manage Anthos attached clusters that run on customer's owned
+ * infrastructure.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/gkemulticloud/v1/attached_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AttachedClustersGrpc { + + private AttachedClustersGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.gkemulticloud.v1.AttachedClusters"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest, + com.google.longrunning.Operation> + getCreateAttachedClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAttachedCluster", + requestType = com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest, + com.google.longrunning.Operation> + getCreateAttachedClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest, + com.google.longrunning.Operation> + getCreateAttachedClusterMethod; + if ((getCreateAttachedClusterMethod = AttachedClustersGrpc.getCreateAttachedClusterMethod) + == null) { + synchronized (AttachedClustersGrpc.class) { + if ((getCreateAttachedClusterMethod = AttachedClustersGrpc.getCreateAttachedClusterMethod) + == null) { + AttachedClustersGrpc.getCreateAttachedClusterMethod = + getCreateAttachedClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateAttachedCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AttachedClustersMethodDescriptorSupplier("CreateAttachedCluster")) + .build(); + } + } + } + return getCreateAttachedClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest, + com.google.longrunning.Operation> + getUpdateAttachedClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAttachedCluster", + requestType = com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest, + com.google.longrunning.Operation> + getUpdateAttachedClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest, + com.google.longrunning.Operation> + getUpdateAttachedClusterMethod; + if ((getUpdateAttachedClusterMethod = AttachedClustersGrpc.getUpdateAttachedClusterMethod) + == null) { + synchronized (AttachedClustersGrpc.class) { + if ((getUpdateAttachedClusterMethod = AttachedClustersGrpc.getUpdateAttachedClusterMethod) + == null) { + AttachedClustersGrpc.getUpdateAttachedClusterMethod = + getUpdateAttachedClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateAttachedCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AttachedClustersMethodDescriptorSupplier("UpdateAttachedCluster")) + .build(); + } + } + } + return getUpdateAttachedClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest, + com.google.longrunning.Operation> + getImportAttachedClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportAttachedCluster", + requestType = com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest, + com.google.longrunning.Operation> + getImportAttachedClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest, + com.google.longrunning.Operation> + getImportAttachedClusterMethod; + if ((getImportAttachedClusterMethod = AttachedClustersGrpc.getImportAttachedClusterMethod) + == null) { + synchronized (AttachedClustersGrpc.class) { + if ((getImportAttachedClusterMethod = AttachedClustersGrpc.getImportAttachedClusterMethod) + == null) { + AttachedClustersGrpc.getImportAttachedClusterMethod = + getImportAttachedClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ImportAttachedCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AttachedClustersMethodDescriptorSupplier("ImportAttachedCluster")) + .build(); + } + } + } + return getImportAttachedClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest, + com.google.cloud.gkemulticloud.v1.AttachedCluster> + getGetAttachedClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAttachedCluster", + requestType = com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest.class, + responseType = com.google.cloud.gkemulticloud.v1.AttachedCluster.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest, + com.google.cloud.gkemulticloud.v1.AttachedCluster> + getGetAttachedClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest, + com.google.cloud.gkemulticloud.v1.AttachedCluster> + getGetAttachedClusterMethod; + if ((getGetAttachedClusterMethod = AttachedClustersGrpc.getGetAttachedClusterMethod) == null) { + synchronized (AttachedClustersGrpc.class) { + if ((getGetAttachedClusterMethod = AttachedClustersGrpc.getGetAttachedClusterMethod) + == null) { + AttachedClustersGrpc.getGetAttachedClusterMethod = + getGetAttachedClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAttachedCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkemulticloud.v1.AttachedCluster + .getDefaultInstance())) + .setSchemaDescriptor( + new AttachedClustersMethodDescriptorSupplier("GetAttachedCluster")) + .build(); + } + } + } + return getGetAttachedClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest, + com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse> + getListAttachedClustersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAttachedClusters", + requestType = com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest.class, + responseType = com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest, + com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse> + getListAttachedClustersMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest, + com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse> + getListAttachedClustersMethod; + if ((getListAttachedClustersMethod = AttachedClustersGrpc.getListAttachedClustersMethod) + == null) { + synchronized (AttachedClustersGrpc.class) { + if ((getListAttachedClustersMethod = AttachedClustersGrpc.getListAttachedClustersMethod) + == null) { + AttachedClustersGrpc.getListAttachedClustersMethod = + getListAttachedClustersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListAttachedClusters")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AttachedClustersMethodDescriptorSupplier("ListAttachedClusters")) + .build(); + } + } + } + return getListAttachedClustersMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest, + com.google.longrunning.Operation> + getDeleteAttachedClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAttachedCluster", + requestType = com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest, + com.google.longrunning.Operation> + getDeleteAttachedClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest, + com.google.longrunning.Operation> + getDeleteAttachedClusterMethod; + if ((getDeleteAttachedClusterMethod = AttachedClustersGrpc.getDeleteAttachedClusterMethod) + == null) { + synchronized (AttachedClustersGrpc.class) { + if ((getDeleteAttachedClusterMethod = AttachedClustersGrpc.getDeleteAttachedClusterMethod) + == null) { + AttachedClustersGrpc.getDeleteAttachedClusterMethod = + getDeleteAttachedClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteAttachedCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AttachedClustersMethodDescriptorSupplier("DeleteAttachedCluster")) + .build(); + } + } + } + return getDeleteAttachedClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest, + com.google.cloud.gkemulticloud.v1.AttachedServerConfig> + getGetAttachedServerConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAttachedServerConfig", + requestType = com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest.class, + responseType = com.google.cloud.gkemulticloud.v1.AttachedServerConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest, + com.google.cloud.gkemulticloud.v1.AttachedServerConfig> + getGetAttachedServerConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest, + com.google.cloud.gkemulticloud.v1.AttachedServerConfig> + getGetAttachedServerConfigMethod; + if ((getGetAttachedServerConfigMethod = AttachedClustersGrpc.getGetAttachedServerConfigMethod) + == null) { + synchronized (AttachedClustersGrpc.class) { + if ((getGetAttachedServerConfigMethod = + AttachedClustersGrpc.getGetAttachedServerConfigMethod) + == null) { + AttachedClustersGrpc.getGetAttachedServerConfigMethod = + getGetAttachedServerConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetAttachedServerConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkemulticloud.v1.AttachedServerConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new AttachedClustersMethodDescriptorSupplier("GetAttachedServerConfig")) + .build(); + } + } + } + return getGetAttachedServerConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest, + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse> + getGenerateAttachedClusterInstallManifestMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateAttachedClusterInstallManifest", + requestType = + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest.class, + responseType = + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest, + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse> + getGenerateAttachedClusterInstallManifestMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest, + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse> + getGenerateAttachedClusterInstallManifestMethod; + if ((getGenerateAttachedClusterInstallManifestMethod = + AttachedClustersGrpc.getGenerateAttachedClusterInstallManifestMethod) + == null) { + synchronized (AttachedClustersGrpc.class) { + if ((getGenerateAttachedClusterInstallManifestMethod = + AttachedClustersGrpc.getGenerateAttachedClusterInstallManifestMethod) + == null) { + AttachedClustersGrpc.getGenerateAttachedClusterInstallManifestMethod = + getGenerateAttachedClusterInstallManifestMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "GenerateAttachedClusterInstallManifest")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkemulticloud.v1 + .GenerateAttachedClusterInstallManifestRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkemulticloud.v1 + .GenerateAttachedClusterInstallManifestResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AttachedClustersMethodDescriptorSupplier( + "GenerateAttachedClusterInstallManifest")) + .build(); + } + } + } + return getGenerateAttachedClusterInstallManifestMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AttachedClustersStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AttachedClustersStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AttachedClustersStub(channel, callOptions); + } + }; + return AttachedClustersStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AttachedClustersBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AttachedClustersBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AttachedClustersBlockingStub(channel, callOptions); + } + }; + return AttachedClustersBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AttachedClustersFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AttachedClustersFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AttachedClustersFutureStub(channel, callOptions); + } + }; + return AttachedClustersFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * The AttachedClusters API provides a single centrally managed service
+   * to register and manage Anthos attached clusters that run on customer's owned
+   * infrastructure.
+   * 
+ */ + public abstract static class AttachedClustersImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a new
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * on a given GCP project and region.
+     * If successful, the response contains a newly created
+     * [Operation][google.longrunning.Operation] resource that can be
+     * described to track the status of the operation.
+     * 
+ */ + public void createAttachedCluster( + com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAttachedClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster].
+     * 
+ */ + public void updateAttachedCluster( + com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAttachedClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Imports creates a new
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * by importing an existing Fleet Membership resource.
+     * Attached Clusters created before the introduction of the Anthos Multi-Cloud
+     * API can be imported through this method.
+     * If successful, the response contains a newly created
+     * [Operation][google.longrunning.Operation] resource that can be
+     * described to track the status of the operation.
+     * 
+ */ + public void importAttachedCluster( + com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getImportAttachedClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Describes a specific
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource.
+     * 
+ */ + public void getAttachedCluster( + com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAttachedClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+     * resources on a given Google Cloud project and region.
+     * 
+ */ + public void listAttachedClusters( + com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAttachedClustersMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a specific
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource.
+     * If successful, the response contains a newly created
+     * [Operation][google.longrunning.Operation] resource that can be
+     * described to track the status of the operation.
+     * 
+ */ + public void deleteAttachedCluster( + com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAttachedClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns information, such as supported Kubernetes versions, on a given
+     * Google Cloud location.
+     * 
+ */ + public void getAttachedServerConfig( + com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAttachedServerConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Generates the install manifest to be installed on the target cluster.
+     * 
+ */ + public void generateAttachedClusterInstallManifest( + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateAttachedClusterInstallManifestMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateAttachedClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_ATTACHED_CLUSTER))) + .addMethod( + getUpdateAttachedClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_ATTACHED_CLUSTER))) + .addMethod( + getImportAttachedClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest, + com.google.longrunning.Operation>(this, METHODID_IMPORT_ATTACHED_CLUSTER))) + .addMethod( + getGetAttachedClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest, + com.google.cloud.gkemulticloud.v1.AttachedCluster>( + this, METHODID_GET_ATTACHED_CLUSTER))) + .addMethod( + getListAttachedClustersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest, + com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse>( + this, METHODID_LIST_ATTACHED_CLUSTERS))) + .addMethod( + getDeleteAttachedClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_ATTACHED_CLUSTER))) + .addMethod( + getGetAttachedServerConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest, + com.google.cloud.gkemulticloud.v1.AttachedServerConfig>( + this, METHODID_GET_ATTACHED_SERVER_CONFIG))) + .addMethod( + getGenerateAttachedClusterInstallManifestMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkemulticloud.v1 + .GenerateAttachedClusterInstallManifestRequest, + com.google.cloud.gkemulticloud.v1 + .GenerateAttachedClusterInstallManifestResponse>( + this, METHODID_GENERATE_ATTACHED_CLUSTER_INSTALL_MANIFEST))) + .build(); + } + } + + /** + * + * + *
+   * The AttachedClusters API provides a single centrally managed service
+   * to register and manage Anthos attached clusters that run on customer's owned
+   * infrastructure.
+   * 
+ */ + public static final class AttachedClustersStub + extends io.grpc.stub.AbstractAsyncStub { + private AttachedClustersStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AttachedClustersStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AttachedClustersStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * on a given GCP project and region.
+     * If successful, the response contains a newly created
+     * [Operation][google.longrunning.Operation] resource that can be
+     * described to track the status of the operation.
+     * 
+ */ + public void createAttachedCluster( + com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAttachedClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster].
+     * 
+ */ + public void updateAttachedCluster( + com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAttachedClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Imports creates a new
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * by importing an existing Fleet Membership resource.
+     * Attached Clusters created before the introduction of the Anthos Multi-Cloud
+     * API can be imported through this method.
+     * If successful, the response contains a newly created
+     * [Operation][google.longrunning.Operation] resource that can be
+     * described to track the status of the operation.
+     * 
+ */ + public void importAttachedCluster( + com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportAttachedClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Describes a specific
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource.
+     * 
+ */ + public void getAttachedCluster( + com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAttachedClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+     * resources on a given Google Cloud project and region.
+     * 
+ */ + public void listAttachedClusters( + com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAttachedClustersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a specific
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource.
+     * If successful, the response contains a newly created
+     * [Operation][google.longrunning.Operation] resource that can be
+     * described to track the status of the operation.
+     * 
+ */ + public void deleteAttachedCluster( + com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAttachedClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns information, such as supported Kubernetes versions, on a given
+     * Google Cloud location.
+     * 
+ */ + public void getAttachedServerConfig( + com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAttachedServerConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Generates the install manifest to be installed on the target cluster.
+     * 
+ */ + public void generateAttachedClusterInstallManifest( + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateAttachedClusterInstallManifestMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * The AttachedClusters API provides a single centrally managed service
+   * to register and manage Anthos attached clusters that run on customer's owned
+   * infrastructure.
+   * 
+ */ + public static final class AttachedClustersBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AttachedClustersBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AttachedClustersBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AttachedClustersBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * on a given GCP project and region.
+     * If successful, the response contains a newly created
+     * [Operation][google.longrunning.Operation] resource that can be
+     * described to track the status of the operation.
+     * 
+ */ + public com.google.longrunning.Operation createAttachedCluster( + com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAttachedClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster].
+     * 
+ */ + public com.google.longrunning.Operation updateAttachedCluster( + com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAttachedClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Imports creates a new
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * by importing an existing Fleet Membership resource.
+     * Attached Clusters created before the introduction of the Anthos Multi-Cloud
+     * API can be imported through this method.
+     * If successful, the response contains a newly created
+     * [Operation][google.longrunning.Operation] resource that can be
+     * described to track the status of the operation.
+     * 
+ */ + public com.google.longrunning.Operation importAttachedCluster( + com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportAttachedClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Describes a specific
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource.
+     * 
+ */ + public com.google.cloud.gkemulticloud.v1.AttachedCluster getAttachedCluster( + com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAttachedClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+     * resources on a given Google Cloud project and region.
+     * 
+ */ + public com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse listAttachedClusters( + com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAttachedClustersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a specific
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource.
+     * If successful, the response contains a newly created
+     * [Operation][google.longrunning.Operation] resource that can be
+     * described to track the status of the operation.
+     * 
+ */ + public com.google.longrunning.Operation deleteAttachedCluster( + com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAttachedClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns information, such as supported Kubernetes versions, on a given
+     * Google Cloud location.
+     * 
+ */ + public com.google.cloud.gkemulticloud.v1.AttachedServerConfig getAttachedServerConfig( + com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAttachedServerConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Generates the install manifest to be installed on the target cluster.
+     * 
+ */ + public com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse + generateAttachedClusterInstallManifest( + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getGenerateAttachedClusterInstallManifestMethod(), + getCallOptions(), + request); + } + } + + /** + * + * + *
+   * The AttachedClusters API provides a single centrally managed service
+   * to register and manage Anthos attached clusters that run on customer's owned
+   * infrastructure.
+   * 
+ */ + public static final class AttachedClustersFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AttachedClustersFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AttachedClustersFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AttachedClustersFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * on a given GCP project and region.
+     * If successful, the response contains a newly created
+     * [Operation][google.longrunning.Operation] resource that can be
+     * described to track the status of the operation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createAttachedCluster( + com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAttachedClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateAttachedCluster( + com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAttachedClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Imports creates a new
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * by importing an existing Fleet Membership resource.
+     * Attached Clusters created before the introduction of the Anthos Multi-Cloud
+     * API can be imported through this method.
+     * If successful, the response contains a newly created
+     * [Operation][google.longrunning.Operation] resource that can be
+     * described to track the status of the operation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + importAttachedCluster( + com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportAttachedClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Describes a specific
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkemulticloud.v1.AttachedCluster> + getAttachedCluster(com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAttachedClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+     * resources on a given Google Cloud project and region.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse> + listAttachedClusters( + com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAttachedClustersMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a specific
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource.
+     * If successful, the response contains a newly created
+     * [Operation][google.longrunning.Operation] resource that can be
+     * described to track the status of the operation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteAttachedCluster( + com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAttachedClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns information, such as supported Kubernetes versions, on a given
+     * Google Cloud location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkemulticloud.v1.AttachedServerConfig> + getAttachedServerConfig( + com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAttachedServerConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Generates the install manifest to be installed on the target cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse> + generateAttachedClusterInstallManifest( + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateAttachedClusterInstallManifestMethod(), getCallOptions()), + request); + } + } + + private static final int METHODID_CREATE_ATTACHED_CLUSTER = 0; + private static final int METHODID_UPDATE_ATTACHED_CLUSTER = 1; + private static final int METHODID_IMPORT_ATTACHED_CLUSTER = 2; + private static final int METHODID_GET_ATTACHED_CLUSTER = 3; + private static final int METHODID_LIST_ATTACHED_CLUSTERS = 4; + private static final int METHODID_DELETE_ATTACHED_CLUSTER = 5; + private static final int METHODID_GET_ATTACHED_SERVER_CONFIG = 6; + private static final int METHODID_GENERATE_ATTACHED_CLUSTER_INSTALL_MANIFEST = 7; + + 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 AttachedClustersImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AttachedClustersImplBase 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_ATTACHED_CLUSTER: + serviceImpl.createAttachedCluster( + (com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_ATTACHED_CLUSTER: + serviceImpl.updateAttachedCluster( + (com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IMPORT_ATTACHED_CLUSTER: + serviceImpl.importAttachedCluster( + (com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ATTACHED_CLUSTER: + serviceImpl.getAttachedCluster( + (com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_ATTACHED_CLUSTERS: + serviceImpl.listAttachedClusters( + (com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse>) + responseObserver); + break; + case METHODID_DELETE_ATTACHED_CLUSTER: + serviceImpl.deleteAttachedCluster( + (com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ATTACHED_SERVER_CONFIG: + serviceImpl.getAttachedServerConfig( + (com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GENERATE_ATTACHED_CLUSTER_INSTALL_MANIFEST: + serviceImpl.generateAttachedClusterInstallManifest( + (com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gkemulticloud.v1 + .GenerateAttachedClusterInstallManifestResponse>) + 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(); + } + } + } + + private abstract static class AttachedClustersBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AttachedClustersBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AttachedClusters"); + } + } + + private static final class AttachedClustersFileDescriptorSupplier + extends AttachedClustersBaseDescriptorSupplier { + AttachedClustersFileDescriptorSupplier() {} + } + + private static final class AttachedClustersMethodDescriptorSupplier + extends AttachedClustersBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AttachedClustersMethodDescriptorSupplier(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 (AttachedClustersGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AttachedClustersFileDescriptorSupplier()) + .addMethod(getCreateAttachedClusterMethod()) + .addMethod(getUpdateAttachedClusterMethod()) + .addMethod(getImportAttachedClusterMethod()) + .addMethod(getGetAttachedClusterMethod()) + .addMethod(getListAttachedClustersMethod()) + .addMethod(getDeleteAttachedClusterMethod()) + .addMethod(getGetAttachedServerConfigMethod()) + .addMethod(getGenerateAttachedClusterInstallManifestMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersGrpc.java b/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersGrpc.java index 3c3b5eaef121..228b583cf4f4 100644 --- a/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersGrpc.java +++ b/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersGrpc.java @@ -648,7 +648,8 @@ public abstract static class AwsClustersImplBase implements io.grpc.BindableServ * * *
-     * Creates a new [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource on a given GCP project and region.
+     * Creates a new [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+     * resource on a given GCP project and region.
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
@@ -679,7 +680,8 @@ public void updateAwsCluster(
      *
      *
      * 
-     * Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource.
+     * Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+     * resource.
      * 
*/ public void getAwsCluster( @@ -694,8 +696,8 @@ public void getAwsCluster( * * *
-     * Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources on a given Google Cloud project and
-     * region.
+     * Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+     * on a given Google Cloud project and region.
      * 
*/ public void listAwsClusters( @@ -710,9 +712,10 @@ public void listAwsClusters( * * *
-     * Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource.
-     * Fails if the cluster has one or more associated [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
-     * resources.
+     * Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+     * resource.
+     * Fails if the cluster has one or more associated
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources.
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
@@ -746,7 +749,8 @@ public void generateAwsAccessToken(
      *
      *
      * 
-     * Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool], attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
+     * Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool],
+     * attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
@@ -777,7 +781,8 @@ public void updateAwsNodePool(
      *
      *
      * 
-     * Describes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource.
+     * Describes a specific
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource.
      * 
*/ public void getAwsNodePool( @@ -792,7 +797,9 @@ public void getAwsNodePool( * * *
-     * Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources on a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
+     * Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resources on a given
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
      * 
*/ public void listAwsNodePools( @@ -807,7 +814,8 @@ public void listAwsNodePools( * * *
-     * Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource.
+     * Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resource.
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
@@ -944,7 +952,8 @@ protected AwsClustersStub build(io.grpc.Channel channel, io.grpc.CallOptions cal
      *
      *
      * 
-     * Creates a new [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource on a given GCP project and region.
+     * Creates a new [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+     * resource on a given GCP project and region.
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
@@ -979,7 +988,8 @@ public void updateAwsCluster(
      *
      *
      * 
-     * Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource.
+     * Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+     * resource.
      * 
*/ public void getAwsCluster( @@ -996,8 +1006,8 @@ public void getAwsCluster( * * *
-     * Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources on a given Google Cloud project and
-     * region.
+     * Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+     * on a given Google Cloud project and region.
      * 
*/ public void listAwsClusters( @@ -1014,9 +1024,10 @@ public void listAwsClusters( * * *
-     * Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource.
-     * Fails if the cluster has one or more associated [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
-     * resources.
+     * Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+     * resource.
+     * Fails if the cluster has one or more associated
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources.
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
@@ -1054,7 +1065,8 @@ public void generateAwsAccessToken(
      *
      *
      * 
-     * Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool], attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
+     * Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool],
+     * attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
@@ -1089,7 +1101,8 @@ public void updateAwsNodePool(
      *
      *
      * 
-     * Describes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource.
+     * Describes a specific
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource.
      * 
*/ public void getAwsNodePool( @@ -1106,7 +1119,9 @@ public void getAwsNodePool( * * *
-     * Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources on a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
+     * Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resources on a given
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
      * 
*/ public void listAwsNodePools( @@ -1123,7 +1138,8 @@ public void listAwsNodePools( * * *
-     * Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource.
+     * Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resource.
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
@@ -1181,7 +1197,8 @@ protected AwsClustersBlockingStub build(
      *
      *
      * 
-     * Creates a new [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource on a given GCP project and region.
+     * Creates a new [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+     * resource on a given GCP project and region.
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
@@ -1210,7 +1227,8 @@ public com.google.longrunning.Operation updateAwsCluster(
      *
      *
      * 
-     * Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource.
+     * Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+     * resource.
      * 
*/ public com.google.cloud.gkemulticloud.v1.AwsCluster getAwsCluster( @@ -1223,8 +1241,8 @@ public com.google.cloud.gkemulticloud.v1.AwsCluster getAwsCluster( * * *
-     * Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources on a given Google Cloud project and
-     * region.
+     * Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+     * on a given Google Cloud project and region.
      * 
*/ public com.google.cloud.gkemulticloud.v1.ListAwsClustersResponse listAwsClusters( @@ -1237,9 +1255,10 @@ public com.google.cloud.gkemulticloud.v1.ListAwsClustersResponse listAwsClusters * * *
-     * Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource.
-     * Fails if the cluster has one or more associated [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
-     * resources.
+     * Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+     * resource.
+     * Fails if the cluster has one or more associated
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources.
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
@@ -1269,7 +1288,8 @@ public com.google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenResponse generate
      *
      *
      * 
-     * Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool], attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
+     * Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool],
+     * attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
@@ -1298,7 +1318,8 @@ public com.google.longrunning.Operation updateAwsNodePool(
      *
      *
      * 
-     * Describes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource.
+     * Describes a specific
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource.
      * 
*/ public com.google.cloud.gkemulticloud.v1.AwsNodePool getAwsNodePool( @@ -1311,7 +1332,9 @@ public com.google.cloud.gkemulticloud.v1.AwsNodePool getAwsNodePool( * * *
-     * Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources on a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
+     * Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resources on a given
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
      * 
*/ public com.google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse listAwsNodePools( @@ -1324,7 +1347,8 @@ public com.google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse listAwsNodePoo * * *
-     * Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource.
+     * Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resource.
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
@@ -1375,7 +1399,8 @@ protected AwsClustersFutureStub build(
      *
      *
      * 
-     * Creates a new [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource on a given GCP project and region.
+     * Creates a new [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+     * resource on a given GCP project and region.
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
@@ -1404,7 +1429,8 @@ protected AwsClustersFutureStub build(
      *
      *
      * 
-     * Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource.
+     * Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+     * resource.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -1418,8 +1444,8 @@ protected AwsClustersFutureStub build( * * *
-     * Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources on a given Google Cloud project and
-     * region.
+     * Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+     * on a given Google Cloud project and region.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -1433,9 +1459,10 @@ protected AwsClustersFutureStub build( * * *
-     * Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource.
-     * Fails if the cluster has one or more associated [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
-     * resources.
+     * Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+     * resource.
+     * Fails if the cluster has one or more associated
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources.
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
@@ -1467,7 +1494,8 @@ protected AwsClustersFutureStub build(
      *
      *
      * 
-     * Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool], attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
+     * Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool],
+     * attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
@@ -1496,7 +1524,8 @@ protected AwsClustersFutureStub build(
      *
      *
      * 
-     * Describes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource.
+     * Describes a specific
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -1510,7 +1539,9 @@ protected AwsClustersFutureStub build( * * *
-     * Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources on a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
+     * Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resources on a given
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -1524,7 +1555,8 @@ protected AwsClustersFutureStub build( * * *
-     * Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource.
+     * Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resource.
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
diff --git a/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersGrpc.java b/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersGrpc.java
index d34092749e2a..f9382140b9b6 100644
--- a/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersGrpc.java
+++ b/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersGrpc.java
@@ -844,8 +844,8 @@ public abstract static class AzureClustersImplBase implements io.grpc.BindableSe
      *
      *
      * 
-     * Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource on a given Google Cloud project
-     * and region.
+     * Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+     * resource on a given Google Cloud project and region.
      * `AzureClient` resources hold client authentication
      * information needed by the Anthos Multicloud API to manage Azure resources
      * on your Azure subscription on your behalf.
@@ -865,7 +865,8 @@ public void createAzureClient(
      *
      *
      * 
-     * Describes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.
+     * Describes a specific
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.
      * 
*/ public void getAzureClient( @@ -880,8 +881,8 @@ public void getAzureClient( * * *
-     * Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources on a given Google Cloud project and
-     * region.
+     * Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+     * resources on a given Google Cloud project and region.
      * 
*/ public void listAzureClients( @@ -896,7 +897,8 @@ public void listAzureClients( * * *
-     * Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.
+     * Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+     * resource.
      * If the client is used by one or more clusters, deletion will
      * fail and a `FAILED_PRECONDITION` error will be returned.
      * If successful, the response contains a newly created
@@ -915,7 +917,8 @@ public void deleteAzureClient(
      *
      *
      * 
-     * Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource on a given GCP project and region.
+     * Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resource on a given GCP project and region.
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
@@ -946,7 +949,8 @@ public void updateAzureCluster(
      *
      *
      * 
-     * Describes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.
+     * Describes a specific
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.
      * 
*/ public void getAzureCluster( @@ -961,8 +965,8 @@ public void getAzureCluster( * * *
-     * Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources on a given Google Cloud project and
-     * region.
+     * Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resources on a given Google Cloud project and region.
      * 
*/ public void listAzureClusters( @@ -977,9 +981,10 @@ public void listAzureClusters( * * *
-     * Deletes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.
-     * Fails if the cluster has one or more associated [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
-     * resources.
+     * Deletes a specific
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.
+     * Fails if the cluster has one or more associated
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources.
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
@@ -1013,7 +1018,9 @@ public void generateAzureAccessToken(
      *
      *
      * 
-     * Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool], attached to a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
+     * Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool],
+     * attached to a given
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
@@ -1044,7 +1051,8 @@ public void updateAzureNodePool(
      *
      *
      * 
-     * Describes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.
+     * Describes a specific
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.
      * 
*/ public void getAzureNodePool( @@ -1059,7 +1067,9 @@ public void getAzureNodePool( * * *
-     * Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources on a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
+     * Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resources on a given
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
      * 
*/ public void listAzureNodePools( @@ -1074,7 +1084,8 @@ public void listAzureNodePools( * * *
-     * Deletes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.
+     * Deletes a specific
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
@@ -1237,8 +1248,8 @@ protected AzureClustersStub build(io.grpc.Channel channel, io.grpc.CallOptions c
      *
      *
      * 
-     * Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource on a given Google Cloud project
-     * and region.
+     * Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+     * resource on a given Google Cloud project and region.
      * `AzureClient` resources hold client authentication
      * information needed by the Anthos Multicloud API to manage Azure resources
      * on your Azure subscription on your behalf.
@@ -1260,7 +1271,8 @@ public void createAzureClient(
      *
      *
      * 
-     * Describes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.
+     * Describes a specific
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.
      * 
*/ public void getAzureClient( @@ -1277,8 +1289,8 @@ public void getAzureClient( * * *
-     * Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources on a given Google Cloud project and
-     * region.
+     * Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+     * resources on a given Google Cloud project and region.
      * 
*/ public void listAzureClients( @@ -1295,7 +1307,8 @@ public void listAzureClients( * * *
-     * Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.
+     * Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+     * resource.
      * If the client is used by one or more clusters, deletion will
      * fail and a `FAILED_PRECONDITION` error will be returned.
      * If successful, the response contains a newly created
@@ -1316,7 +1329,8 @@ public void deleteAzureClient(
      *
      *
      * 
-     * Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource on a given GCP project and region.
+     * Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resource on a given GCP project and region.
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
@@ -1351,7 +1365,8 @@ public void updateAzureCluster(
      *
      *
      * 
-     * Describes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.
+     * Describes a specific
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.
      * 
*/ public void getAzureCluster( @@ -1368,8 +1383,8 @@ public void getAzureCluster( * * *
-     * Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources on a given Google Cloud project and
-     * region.
+     * Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resources on a given Google Cloud project and region.
      * 
*/ public void listAzureClusters( @@ -1386,9 +1401,10 @@ public void listAzureClusters( * * *
-     * Deletes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.
-     * Fails if the cluster has one or more associated [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
-     * resources.
+     * Deletes a specific
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.
+     * Fails if the cluster has one or more associated
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources.
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
@@ -1426,7 +1442,9 @@ public void generateAzureAccessToken(
      *
      *
      * 
-     * Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool], attached to a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
+     * Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool],
+     * attached to a given
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
@@ -1461,7 +1479,8 @@ public void updateAzureNodePool(
      *
      *
      * 
-     * Describes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.
+     * Describes a specific
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.
      * 
*/ public void getAzureNodePool( @@ -1478,7 +1497,9 @@ public void getAzureNodePool( * * *
-     * Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources on a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
+     * Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resources on a given
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
      * 
*/ public void listAzureNodePools( @@ -1495,7 +1516,8 @@ public void listAzureNodePools( * * *
-     * Deletes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.
+     * Deletes a specific
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
@@ -1553,8 +1575,8 @@ protected AzureClustersBlockingStub build(
      *
      *
      * 
-     * Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource on a given Google Cloud project
-     * and region.
+     * Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+     * resource on a given Google Cloud project and region.
      * `AzureClient` resources hold client authentication
      * information needed by the Anthos Multicloud API to manage Azure resources
      * on your Azure subscription on your behalf.
@@ -1573,7 +1595,8 @@ public com.google.longrunning.Operation createAzureClient(
      *
      *
      * 
-     * Describes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.
+     * Describes a specific
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.
      * 
*/ public com.google.cloud.gkemulticloud.v1.AzureClient getAzureClient( @@ -1586,8 +1609,8 @@ public com.google.cloud.gkemulticloud.v1.AzureClient getAzureClient( * * *
-     * Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources on a given Google Cloud project and
-     * region.
+     * Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+     * resources on a given Google Cloud project and region.
      * 
*/ public com.google.cloud.gkemulticloud.v1.ListAzureClientsResponse listAzureClients( @@ -1600,7 +1623,8 @@ public com.google.cloud.gkemulticloud.v1.ListAzureClientsResponse listAzureClien * * *
-     * Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.
+     * Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+     * resource.
      * If the client is used by one or more clusters, deletion will
      * fail and a `FAILED_PRECONDITION` error will be returned.
      * If successful, the response contains a newly created
@@ -1618,7 +1642,8 @@ public com.google.longrunning.Operation deleteAzureClient(
      *
      *
      * 
-     * Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource on a given GCP project and region.
+     * Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resource on a given GCP project and region.
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
@@ -1647,7 +1672,8 @@ public com.google.longrunning.Operation updateAzureCluster(
      *
      *
      * 
-     * Describes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.
+     * Describes a specific
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.
      * 
*/ public com.google.cloud.gkemulticloud.v1.AzureCluster getAzureCluster( @@ -1660,8 +1686,8 @@ public com.google.cloud.gkemulticloud.v1.AzureCluster getAzureCluster( * * *
-     * Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources on a given Google Cloud project and
-     * region.
+     * Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resources on a given Google Cloud project and region.
      * 
*/ public com.google.cloud.gkemulticloud.v1.ListAzureClustersResponse listAzureClusters( @@ -1674,9 +1700,10 @@ public com.google.cloud.gkemulticloud.v1.ListAzureClustersResponse listAzureClus * * *
-     * Deletes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.
-     * Fails if the cluster has one or more associated [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
-     * resources.
+     * Deletes a specific
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.
+     * Fails if the cluster has one or more associated
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources.
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
@@ -1707,7 +1734,9 @@ public com.google.longrunning.Operation deleteAzureCluster(
      *
      *
      * 
-     * Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool], attached to a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
+     * Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool],
+     * attached to a given
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
@@ -1736,7 +1765,8 @@ public com.google.longrunning.Operation updateAzureNodePool(
      *
      *
      * 
-     * Describes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.
+     * Describes a specific
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.
      * 
*/ public com.google.cloud.gkemulticloud.v1.AzureNodePool getAzureNodePool( @@ -1749,7 +1779,9 @@ public com.google.cloud.gkemulticloud.v1.AzureNodePool getAzureNodePool( * * *
-     * Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources on a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
+     * Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resources on a given
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
      * 
*/ public com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse listAzureNodePools( @@ -1762,7 +1794,8 @@ public com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse listAzureNod * * *
-     * Deletes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.
+     * Deletes a specific
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
@@ -1813,8 +1846,8 @@ protected AzureClustersFutureStub build(
      *
      *
      * 
-     * Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource on a given Google Cloud project
-     * and region.
+     * Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+     * resource on a given Google Cloud project and region.
      * `AzureClient` resources hold client authentication
      * information needed by the Anthos Multicloud API to manage Azure resources
      * on your Azure subscription on your behalf.
@@ -1833,7 +1866,8 @@ protected AzureClustersFutureStub build(
      *
      *
      * 
-     * Describes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.
+     * Describes a specific
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -1847,8 +1881,8 @@ protected AzureClustersFutureStub build( * * *
-     * Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources on a given Google Cloud project and
-     * region.
+     * Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+     * resources on a given Google Cloud project and region.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -1862,7 +1896,8 @@ protected AzureClustersFutureStub build( * * *
-     * Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.
+     * Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+     * resource.
      * If the client is used by one or more clusters, deletion will
      * fail and a `FAILED_PRECONDITION` error will be returned.
      * If successful, the response contains a newly created
@@ -1880,7 +1915,8 @@ protected AzureClustersFutureStub build(
      *
      *
      * 
-     * Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource on a given GCP project and region.
+     * Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resource on a given GCP project and region.
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
@@ -1909,7 +1945,8 @@ protected AzureClustersFutureStub build(
      *
      *
      * 
-     * Describes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.
+     * Describes a specific
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -1923,8 +1960,8 @@ protected AzureClustersFutureStub build( * * *
-     * Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources on a given Google Cloud project and
-     * region.
+     * Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resources on a given Google Cloud project and region.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -1938,9 +1975,10 @@ protected AzureClustersFutureStub build( * * *
-     * Deletes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.
-     * Fails if the cluster has one or more associated [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
-     * resources.
+     * Deletes a specific
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.
+     * Fails if the cluster has one or more associated
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources.
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
@@ -1972,7 +2010,9 @@ protected AzureClustersFutureStub build(
      *
      *
      * 
-     * Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool], attached to a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
+     * Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool],
+     * attached to a given
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
@@ -2001,7 +2041,8 @@ protected AzureClustersFutureStub build(
      *
      *
      * 
-     * Describes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.
+     * Describes a specific
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -2015,7 +2056,9 @@ protected AzureClustersFutureStub build( * * *
-     * Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources on a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
+     * Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resources on a given
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -2029,7 +2072,8 @@ protected AzureClustersFutureStub build( * * *
-     * Deletes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.
+     * Deletes a specific
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.
      * If successful, the response contains a newly created
      * [Operation][google.longrunning.Operation] resource that can be
      * described to track the status of the operation.
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedCluster.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedCluster.java
new file mode 100644
index 000000000000..deaec4a8fd65
--- /dev/null
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedCluster.java
@@ -0,0 +1,5764 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/gkemulticloud/v1/attached_resources.proto
+
+package com.google.cloud.gkemulticloud.v1;
+
+/**
+ *
+ *
+ * 
+ * An Anthos cluster running on customer own infrastructure.
+ * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.AttachedCluster} + */ +public final class AttachedCluster extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AttachedCluster) + AttachedClusterOrBuilder { + private static final long serialVersionUID = 0L; + // Use AttachedCluster.newBuilder() to construct. + private AttachedCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AttachedCluster() { + name_ = ""; + description_ = ""; + platformVersion_ = ""; + distribution_ = ""; + clusterRegion_ = ""; + state_ = 0; + uid_ = ""; + etag_ = ""; + kubernetesVersion_ = ""; + errors_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AttachedCluster(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedCluster_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 13: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedCluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.AttachedCluster.class, + com.google.cloud.gkemulticloud.v1.AttachedCluster.Builder.class); + } + + /** + * + * + *
+   * The lifecycle state of the cluster.
+   * 
+ * + * Protobuf enum {@code google.cloud.gkemulticloud.v1.AttachedCluster.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not set.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The PROVISIONING state indicates the cluster is being registered.
+     * 
+ * + * PROVISIONING = 1; + */ + PROVISIONING(1), + /** + * + * + *
+     * The RUNNING state indicates the cluster has been register and is fully
+     * usable.
+     * 
+ * + * RUNNING = 2; + */ + RUNNING(2), + /** + * + * + *
+     * The RECONCILING state indicates that some work is actively being done on
+     * the cluster, such as upgrading software components.
+     * 
+ * + * RECONCILING = 3; + */ + RECONCILING(3), + /** + * + * + *
+     * The STOPPING state indicates the cluster is being de-registered.
+     * 
+ * + * STOPPING = 4; + */ + STOPPING(4), + /** + * + * + *
+     * The ERROR state indicates the cluster is in a broken unrecoverable
+     * state.
+     * 
+ * + * ERROR = 5; + */ + ERROR(5), + /** + * + * + *
+     * The DEGRADED state indicates the cluster requires user action to
+     * restore full functionality.
+     * 
+ * + * DEGRADED = 6; + */ + DEGRADED(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not set.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The PROVISIONING state indicates the cluster is being registered.
+     * 
+ * + * PROVISIONING = 1; + */ + public static final int PROVISIONING_VALUE = 1; + /** + * + * + *
+     * The RUNNING state indicates the cluster has been register and is fully
+     * usable.
+     * 
+ * + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + * + * + *
+     * The RECONCILING state indicates that some work is actively being done on
+     * the cluster, such as upgrading software components.
+     * 
+ * + * RECONCILING = 3; + */ + public static final int RECONCILING_VALUE = 3; + /** + * + * + *
+     * The STOPPING state indicates the cluster is being de-registered.
+     * 
+ * + * STOPPING = 4; + */ + public static final int STOPPING_VALUE = 4; + /** + * + * + *
+     * The ERROR state indicates the cluster is in a broken unrecoverable
+     * state.
+     * 
+ * + * ERROR = 5; + */ + public static final int ERROR_VALUE = 5; + /** + * + * + *
+     * The DEGRADED state indicates the cluster requires user action to
+     * restore full functionality.
+     * 
+ * + * DEGRADED = 6; + */ + public static final int DEGRADED_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 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 PROVISIONING; + case 2: + return RUNNING; + case 3: + return RECONCILING; + case 4: + return STOPPING; + case 5: + return ERROR; + case 6: + return DEGRADED; + 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.gkemulticloud.v1.AttachedCluster.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.gkemulticloud.v1.AttachedCluster.State) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name of this resource.
+   * Cluster names are formatted as
+   * `projects/<project-number>/locations/<region>/attachedClusters/<cluster-id>`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on GCP resource names.
+   * 
+ * + * 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 name of this resource.
+   * Cluster names are formatted as
+   * `projects/<project-number>/locations/<region>/attachedClusters/<cluster-id>`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on GCP resource names.
+   * 
+ * + * 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 DESCRIPTION_FIELD_NUMBER = 2; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Optional. A human readable description of this cluster.
+   * Cannot be longer than 255 UTF-8 encoded bytes.
+   * 
+ * + * 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. A human readable description of this cluster.
+   * Cannot be longer than 255 UTF-8 encoded bytes.
+   * 
+ * + * 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 OIDC_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.gkemulticloud.v1.AttachedOidcConfig oidcConfig_; + /** + * + * + *
+   * Required. OpenID Connect (OIDC) configuration for the cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the oidcConfig field is set. + */ + @java.lang.Override + public boolean hasOidcConfig() { + return oidcConfig_ != null; + } + /** + * + * + *
+   * Required. OpenID Connect (OIDC) configuration for the cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The oidcConfig. + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedOidcConfig getOidcConfig() { + return oidcConfig_ == null + ? com.google.cloud.gkemulticloud.v1.AttachedOidcConfig.getDefaultInstance() + : oidcConfig_; + } + /** + * + * + *
+   * Required. OpenID Connect (OIDC) configuration for the cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedOidcConfigOrBuilder getOidcConfigOrBuilder() { + return getOidcConfig(); + } + + public static final int PLATFORM_VERSION_FIELD_NUMBER = 4; + private volatile java.lang.Object platformVersion_; + /** + * + * + *
+   * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
+   * You can list all supported versions on a given Google Cloud region by
+   * calling
+   * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
+   * 
+ * + * string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The platformVersion. + */ + @java.lang.Override + public java.lang.String getPlatformVersion() { + java.lang.Object ref = platformVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + platformVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
+   * You can list all supported versions on a given Google Cloud region by
+   * calling
+   * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
+   * 
+ * + * string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for platformVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPlatformVersionBytes() { + java.lang.Object ref = platformVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + platformVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISTRIBUTION_FIELD_NUMBER = 16; + private volatile java.lang.Object distribution_; + /** + * + * + *
+   * Required. The Kubernetes distribution of the underlying attached cluster.
+   * Supported values: ["eks", "aks"].
+   * 
+ * + * string distribution = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The distribution. + */ + @java.lang.Override + public java.lang.String getDistribution() { + java.lang.Object ref = distribution_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + distribution_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The Kubernetes distribution of the underlying attached cluster.
+   * Supported values: ["eks", "aks"].
+   * 
+ * + * string distribution = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for distribution. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDistributionBytes() { + java.lang.Object ref = distribution_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + distribution_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_REGION_FIELD_NUMBER = 22; + private volatile java.lang.Object clusterRegion_; + /** + * + * + *
+   * Output only. The region where this cluster runs.
+   * For EKS clusters, this is a AWS region. For AKS clusters,
+   * this is an Azure region.
+   * 
+ * + * string cluster_region = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The clusterRegion. + */ + @java.lang.Override + public java.lang.String getClusterRegion() { + java.lang.Object ref = clusterRegion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterRegion_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The region where this cluster runs.
+   * For EKS clusters, this is a AWS region. For AKS clusters,
+   * this is an Azure region.
+   * 
+ * + * string cluster_region = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for clusterRegion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterRegionBytes() { + java.lang.Object ref = clusterRegion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterRegion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FLEET_FIELD_NUMBER = 5; + private com.google.cloud.gkemulticloud.v1.Fleet fleet_; + /** + * + * + *
+   * Required. Fleet configuration.
+   * 
+ * + * .google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the fleet field is set. + */ + @java.lang.Override + public boolean hasFleet() { + return fleet_ != null; + } + /** + * + * + *
+   * Required. Fleet configuration.
+   * 
+ * + * .google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The fleet. + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.Fleet getFleet() { + return fleet_ == null ? com.google.cloud.gkemulticloud.v1.Fleet.getDefaultInstance() : fleet_; + } + /** + * + * + *
+   * Required. Fleet configuration.
+   * 
+ * + * .google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.FleetOrBuilder getFleetOrBuilder() { + return getFleet(); + } + + public static final int STATE_FIELD_NUMBER = 6; + private int state_; + /** + * + * + *
+   * Output only. The current state of the cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster.State state = 6 [(.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 the cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedCluster.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.gkemulticloud.v1.AttachedCluster.State result = + com.google.cloud.gkemulticloud.v1.AttachedCluster.State.valueOf(state_); + return result == null + ? com.google.cloud.gkemulticloud.v1.AttachedCluster.State.UNRECOGNIZED + : result; + } + + public static final int UID_FIELD_NUMBER = 7; + private volatile java.lang.Object uid_; + /** + * + * + *
+   * Output only. A globally unique identifier for the cluster.
+   * 
+ * + * string uid = 7 [(.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. A globally unique identifier for the cluster.
+   * 
+ * + * string uid = 7 [(.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 RECONCILING_FIELD_NUMBER = 8; + private boolean reconciling_; + /** + * + * + *
+   * Output only. If set, there are currently changes in flight to the cluster.
+   * 
+ * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 9; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. The time at which this cluster was registered.
+   * 
+ * + * .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 createTime_ != null; + } + /** + * + * + *
+   * Output only. The time at which this cluster was registered.
+   * 
+ * + * .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 at which this cluster was registered.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 10; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. The time at which this cluster was last 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 updateTime_ != null; + } + /** + * + * + *
+   * Output only. The time at which this cluster was last 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 at which this cluster was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int ETAG_FIELD_NUMBER = 11; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * Allows clients to perform consistent read-modify-writes
+   * through optimistic concurrency control.
+   * Can be sent on update and delete requests to ensure the
+   * client has an up-to-date value before proceeding.
+   * 
+ * + * string etag = 11; + * + * @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; + } + } + /** + * + * + *
+   * Allows clients to perform consistent read-modify-writes
+   * through optimistic concurrency control.
+   * Can be sent on update and delete requests to ensure the
+   * client has an up-to-date value before proceeding.
+   * 
+ * + * string etag = 11; + * + * @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 KUBERNETES_VERSION_FIELD_NUMBER = 12; + private volatile java.lang.Object kubernetesVersion_; + /** + * + * + *
+   * Output only. The Kubernetes version of the cluster.
+   * 
+ * + * string kubernetes_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The kubernetesVersion. + */ + @java.lang.Override + public java.lang.String getKubernetesVersion() { + java.lang.Object ref = kubernetesVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kubernetesVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The Kubernetes version of the cluster.
+   * 
+ * + * string kubernetes_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for kubernetesVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKubernetesVersionBytes() { + java.lang.Object ref = kubernetesVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kubernetesVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 13; + + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedCluster_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + * + * + *
+   * Optional. Annotations on the cluster.
+   * This field has the same restrictions as Kubernetes annotations.
+   * The total size of all keys and values combined is limited to 256k.
+   * Key can have 2 segments: prefix (optional) and name (required),
+   * separated by a slash (/).
+   * Prefix must be a DNS subdomain.
+   * Name must be 63 characters or less, begin and end with alphanumerics,
+   * with dashes (-), underscores (_), dots (.), and alphanumerics between.
+   * 
+ * + * map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + * + * + *
+   * Optional. Annotations on the cluster.
+   * This field has the same restrictions as Kubernetes annotations.
+   * The total size of all keys and values combined is limited to 256k.
+   * Key can have 2 segments: prefix (optional) and name (required),
+   * separated by a slash (/).
+   * Prefix must be a DNS subdomain.
+   * Name must be 63 characters or less, begin and end with alphanumerics,
+   * with dashes (-), underscores (_), dots (.), and alphanumerics between.
+   * 
+ * + * map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + * + * + *
+   * Optional. Annotations on the cluster.
+   * This field has the same restrictions as Kubernetes annotations.
+   * The total size of all keys and values combined is limited to 256k.
+   * Key can have 2 segments: prefix (optional) and name (required),
+   * separated by a slash (/).
+   * Prefix must be a DNS subdomain.
+   * Name must be 63 characters or less, begin and end with alphanumerics,
+   * with dashes (-), underscores (_), dots (.), and alphanumerics between.
+   * 
+ * + * map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional. Annotations on the cluster.
+   * This field has the same restrictions as Kubernetes annotations.
+   * The total size of all keys and values combined is limited to 256k.
+   * Key can have 2 segments: prefix (optional) and name (required),
+   * separated by a slash (/).
+   * Prefix must be a DNS subdomain.
+   * Name must be 63 characters or less, begin and end with alphanumerics,
+   * with dashes (-), underscores (_), dots (.), and alphanumerics between.
+   * 
+ * + * map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER = 14; + private com.google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workloadIdentityConfig_; + /** + * + * + *
+   * Output only. Workload Identity settings.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the workloadIdentityConfig field is set. + */ + @java.lang.Override + public boolean hasWorkloadIdentityConfig() { + return workloadIdentityConfig_ != null; + } + /** + * + * + *
+   * Output only. Workload Identity settings.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The workloadIdentityConfig. + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.WorkloadIdentityConfig getWorkloadIdentityConfig() { + return workloadIdentityConfig_ == null + ? com.google.cloud.gkemulticloud.v1.WorkloadIdentityConfig.getDefaultInstance() + : workloadIdentityConfig_; + } + /** + * + * + *
+   * Output only. Workload Identity settings.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.WorkloadIdentityConfigOrBuilder + getWorkloadIdentityConfigOrBuilder() { + return getWorkloadIdentityConfig(); + } + + public static final int LOGGING_CONFIG_FIELD_NUMBER = 15; + private com.google.cloud.gkemulticloud.v1.LoggingConfig loggingConfig_; + /** + * + * + *
+   * Optional. Logging configuration for this cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the loggingConfig field is set. + */ + @java.lang.Override + public boolean hasLoggingConfig() { + return loggingConfig_ != null; + } + /** + * + * + *
+   * Optional. Logging configuration for this cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The loggingConfig. + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.LoggingConfig getLoggingConfig() { + return loggingConfig_ == null + ? com.google.cloud.gkemulticloud.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; + } + /** + * + * + *
+   * Optional. Logging configuration for this cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { + return getLoggingConfig(); + } + + public static final int ERRORS_FIELD_NUMBER = 20; + private java.util.List errors_; + /** + * + * + *
+   * Output only. A set of errors found in the cluster.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getErrorsList() { + return errors_; + } + /** + * + * + *
+   * Output only. A set of errors found in the cluster.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getErrorsOrBuilderList() { + return errors_; + } + /** + * + * + *
+   * Output only. A set of errors found in the cluster.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getErrorsCount() { + return errors_.size(); + } + /** + * + * + *
+   * Output only. A set of errors found in the cluster.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedClusterError getErrors(int index) { + return errors_.get(index); + } + /** + * + * + *
+   * Output only. A set of errors found in the cluster.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedClusterErrorOrBuilder getErrorsOrBuilder( + int index) { + return errors_.get(index); + } + + public static final int AUTHORIZATION_FIELD_NUMBER = 21; + private com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization_; + /** + * + * + *
+   * Optional. Configuration related to the cluster RBAC settings.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the authorization field is set. + */ + @java.lang.Override + public boolean hasAuthorization() { + return authorization_ != null; + } + /** + * + * + *
+   * Optional. Configuration related to the cluster RBAC settings.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authorization. + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization getAuthorization() { + return authorization_ == null + ? com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization.getDefaultInstance() + : authorization_; + } + /** + * + * + *
+   * Optional. Configuration related to the cluster RBAC settings.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorizationOrBuilder + getAuthorizationOrBuilder() { + return getAuthorization(); + } + + public static final int MONITORING_CONFIG_FIELD_NUMBER = 23; + private com.google.cloud.gkemulticloud.v1.MonitoringConfig monitoringConfig_; + /** + * + * + *
+   * Optional. Monitoring configuration for this cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the monitoringConfig field is set. + */ + @java.lang.Override + public boolean hasMonitoringConfig() { + return monitoringConfig_ != null; + } + /** + * + * + *
+   * Optional. Monitoring configuration for this cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The monitoringConfig. + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.MonitoringConfig getMonitoringConfig() { + return monitoringConfig_ == null + ? com.google.cloud.gkemulticloud.v1.MonitoringConfig.getDefaultInstance() + : monitoringConfig_; + } + /** + * + * + *
+   * Optional. Monitoring configuration for this cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.MonitoringConfigOrBuilder + getMonitoringConfigOrBuilder() { + return getMonitoringConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + if (oidcConfig_ != null) { + output.writeMessage(3, getOidcConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(platformVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, platformVersion_); + } + if (fleet_ != null) { + output.writeMessage(5, getFleet()); + } + if (state_ + != com.google.cloud.gkemulticloud.v1.AttachedCluster.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, uid_); + } + if (reconciling_ != false) { + output.writeBool(8, reconciling_); + } + if (createTime_ != null) { + output.writeMessage(9, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(10, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, etag_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kubernetesVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, kubernetesVersion_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 13); + if (workloadIdentityConfig_ != null) { + output.writeMessage(14, getWorkloadIdentityConfig()); + } + if (loggingConfig_ != null) { + output.writeMessage(15, getLoggingConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(distribution_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, distribution_); + } + for (int i = 0; i < errors_.size(); i++) { + output.writeMessage(20, errors_.get(i)); + } + if (authorization_ != null) { + output.writeMessage(21, getAuthorization()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterRegion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 22, clusterRegion_); + } + if (monitoringConfig_ != null) { + output.writeMessage(23, getMonitoringConfig()); + } + 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(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + if (oidcConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOidcConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(platformVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, platformVersion_); + } + if (fleet_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getFleet()); + } + if (state_ + != com.google.cloud.gkemulticloud.v1.AttachedCluster.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, uid_); + } + if (reconciling_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, reconciling_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, etag_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kubernetesVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, kubernetesVersion_); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, annotations__); + } + if (workloadIdentityConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(14, getWorkloadIdentityConfig()); + } + if (loggingConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getLoggingConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(distribution_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, distribution_); + } + for (int i = 0; i < errors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, errors_.get(i)); + } + if (authorization_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getAuthorization()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterRegion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, clusterRegion_); + } + if (monitoringConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getMonitoringConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkemulticloud.v1.AttachedCluster)) { + return super.equals(obj); + } + com.google.cloud.gkemulticloud.v1.AttachedCluster other = + (com.google.cloud.gkemulticloud.v1.AttachedCluster) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (hasOidcConfig() != other.hasOidcConfig()) return false; + if (hasOidcConfig()) { + if (!getOidcConfig().equals(other.getOidcConfig())) return false; + } + if (!getPlatformVersion().equals(other.getPlatformVersion())) return false; + if (!getDistribution().equals(other.getDistribution())) return false; + if (!getClusterRegion().equals(other.getClusterRegion())) return false; + if (hasFleet() != other.hasFleet()) return false; + if (hasFleet()) { + if (!getFleet().equals(other.getFleet())) return false; + } + if (state_ != other.state_) return false; + if (!getUid().equals(other.getUid())) return false; + if (getReconciling() != other.getReconciling()) 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 (!getKubernetesVersion().equals(other.getKubernetesVersion())) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (hasWorkloadIdentityConfig() != other.hasWorkloadIdentityConfig()) return false; + if (hasWorkloadIdentityConfig()) { + if (!getWorkloadIdentityConfig().equals(other.getWorkloadIdentityConfig())) return false; + } + if (hasLoggingConfig() != other.hasLoggingConfig()) return false; + if (hasLoggingConfig()) { + if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; + } + if (!getErrorsList().equals(other.getErrorsList())) return false; + if (hasAuthorization() != other.hasAuthorization()) return false; + if (hasAuthorization()) { + if (!getAuthorization().equals(other.getAuthorization())) return false; + } + if (hasMonitoringConfig() != other.hasMonitoringConfig()) return false; + if (hasMonitoringConfig()) { + if (!getMonitoringConfig().equals(other.getMonitoringConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasOidcConfig()) { + hash = (37 * hash) + OIDC_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getOidcConfig().hashCode(); + } + hash = (37 * hash) + PLATFORM_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getPlatformVersion().hashCode(); + hash = (37 * hash) + DISTRIBUTION_FIELD_NUMBER; + hash = (53 * hash) + getDistribution().hashCode(); + hash = (37 * hash) + CLUSTER_REGION_FIELD_NUMBER; + hash = (53 * hash) + getClusterRegion().hashCode(); + if (hasFleet()) { + hash = (37 * hash) + FLEET_FIELD_NUMBER; + hash = (53 * hash) + getFleet().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (37 * hash) + RECONCILING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + 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 = (37 * hash) + KUBERNETES_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getKubernetesVersion().hashCode(); + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + if (hasWorkloadIdentityConfig()) { + hash = (37 * hash) + WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWorkloadIdentityConfig().hashCode(); + } + if (hasLoggingConfig()) { + hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLoggingConfig().hashCode(); + } + if (getErrorsCount() > 0) { + hash = (37 * hash) + ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getErrorsList().hashCode(); + } + if (hasAuthorization()) { + hash = (37 * hash) + AUTHORIZATION_FIELD_NUMBER; + hash = (53 * hash) + getAuthorization().hashCode(); + } + if (hasMonitoringConfig()) { + hash = (37 * hash) + MONITORING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMonitoringConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkemulticloud.v1.AttachedCluster parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedCluster parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedCluster parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedCluster parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedCluster parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedCluster parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedCluster parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedCluster parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedCluster parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedCluster parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedCluster parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedCluster parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkemulticloud.v1.AttachedCluster prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 Anthos cluster running on customer own infrastructure.
+   * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.AttachedCluster} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkemulticloud.v1.AttachedCluster) + com.google.cloud.gkemulticloud.v1.AttachedClusterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedCluster_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 13: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 13: + return internalGetMutableAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedCluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.AttachedCluster.class, + com.google.cloud.gkemulticloud.v1.AttachedCluster.Builder.class); + } + + // Construct using com.google.cloud.gkemulticloud.v1.AttachedCluster.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + description_ = ""; + + if (oidcConfigBuilder_ == null) { + oidcConfig_ = null; + } else { + oidcConfig_ = null; + oidcConfigBuilder_ = null; + } + platformVersion_ = ""; + + distribution_ = ""; + + clusterRegion_ = ""; + + if (fleetBuilder_ == null) { + fleet_ = null; + } else { + fleet_ = null; + fleetBuilder_ = null; + } + state_ = 0; + + uid_ = ""; + + reconciling_ = false; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + etag_ = ""; + + kubernetesVersion_ = ""; + + internalGetMutableAnnotations().clear(); + if (workloadIdentityConfigBuilder_ == null) { + workloadIdentityConfig_ = null; + } else { + workloadIdentityConfig_ = null; + workloadIdentityConfigBuilder_ = null; + } + if (loggingConfigBuilder_ == null) { + loggingConfig_ = null; + } else { + loggingConfig_ = null; + loggingConfigBuilder_ = null; + } + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + } else { + errors_ = null; + errorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (authorizationBuilder_ == null) { + authorization_ = null; + } else { + authorization_ = null; + authorizationBuilder_ = null; + } + if (monitoringConfigBuilder_ == null) { + monitoringConfig_ = null; + } else { + monitoringConfig_ = null; + monitoringConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedCluster_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedCluster getDefaultInstanceForType() { + return com.google.cloud.gkemulticloud.v1.AttachedCluster.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedCluster build() { + com.google.cloud.gkemulticloud.v1.AttachedCluster result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedCluster buildPartial() { + com.google.cloud.gkemulticloud.v1.AttachedCluster result = + new com.google.cloud.gkemulticloud.v1.AttachedCluster(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.description_ = description_; + if (oidcConfigBuilder_ == null) { + result.oidcConfig_ = oidcConfig_; + } else { + result.oidcConfig_ = oidcConfigBuilder_.build(); + } + result.platformVersion_ = platformVersion_; + result.distribution_ = distribution_; + result.clusterRegion_ = clusterRegion_; + if (fleetBuilder_ == null) { + result.fleet_ = fleet_; + } else { + result.fleet_ = fleetBuilder_.build(); + } + result.state_ = state_; + result.uid_ = uid_; + result.reconciling_ = reconciling_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.etag_ = etag_; + result.kubernetesVersion_ = kubernetesVersion_; + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + if (workloadIdentityConfigBuilder_ == null) { + result.workloadIdentityConfig_ = workloadIdentityConfig_; + } else { + result.workloadIdentityConfig_ = workloadIdentityConfigBuilder_.build(); + } + if (loggingConfigBuilder_ == null) { + result.loggingConfig_ = loggingConfig_; + } else { + result.loggingConfig_ = loggingConfigBuilder_.build(); + } + if (errorsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + errors_ = java.util.Collections.unmodifiableList(errors_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.errors_ = errors_; + } else { + result.errors_ = errorsBuilder_.build(); + } + if (authorizationBuilder_ == null) { + result.authorization_ = authorization_; + } else { + result.authorization_ = authorizationBuilder_.build(); + } + if (monitoringConfigBuilder_ == null) { + result.monitoringConfig_ = monitoringConfig_; + } else { + result.monitoringConfig_ = monitoringConfigBuilder_.build(); + } + 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.gkemulticloud.v1.AttachedCluster) { + return mergeFrom((com.google.cloud.gkemulticloud.v1.AttachedCluster) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.AttachedCluster other) { + if (other == com.google.cloud.gkemulticloud.v1.AttachedCluster.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.hasOidcConfig()) { + mergeOidcConfig(other.getOidcConfig()); + } + if (!other.getPlatformVersion().isEmpty()) { + platformVersion_ = other.platformVersion_; + onChanged(); + } + if (!other.getDistribution().isEmpty()) { + distribution_ = other.distribution_; + onChanged(); + } + if (!other.getClusterRegion().isEmpty()) { + clusterRegion_ = other.clusterRegion_; + onChanged(); + } + if (other.hasFleet()) { + mergeFleet(other.getFleet()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + onChanged(); + } + if (other.getReconciling() != false) { + setReconciling(other.getReconciling()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + if (!other.getKubernetesVersion().isEmpty()) { + kubernetesVersion_ = other.kubernetesVersion_; + onChanged(); + } + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + if (other.hasWorkloadIdentityConfig()) { + mergeWorkloadIdentityConfig(other.getWorkloadIdentityConfig()); + } + if (other.hasLoggingConfig()) { + mergeLoggingConfig(other.getLoggingConfig()); + } + if (errorsBuilder_ == null) { + if (!other.errors_.isEmpty()) { + if (errors_.isEmpty()) { + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureErrorsIsMutable(); + errors_.addAll(other.errors_); + } + onChanged(); + } + } else { + if (!other.errors_.isEmpty()) { + if (errorsBuilder_.isEmpty()) { + errorsBuilder_.dispose(); + errorsBuilder_ = null; + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000002); + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorsFieldBuilder() + : null; + } else { + errorsBuilder_.addAllMessages(other.errors_); + } + } + } + if (other.hasAuthorization()) { + mergeAuthorization(other.getAuthorization()); + } + if (other.hasMonitoringConfig()) { + mergeMonitoringConfig(other.getMonitoringConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getOidcConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + platformVersion_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + input.readMessage(getFleetFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 48: + { + state_ = input.readEnum(); + + break; + } // case 48 + case 58: + { + uid_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 64: + { + reconciling_ = input.readBool(); + + break; + } // case 64 + case 74: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 74 + case 82: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 82 + case 90: + { + etag_ = input.readStringRequireUtf8(); + + break; + } // case 90 + case 98: + { + kubernetesVersion_ = input.readStringRequireUtf8(); + + break; + } // case 98 + case 106: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + break; + } // case 106 + case 114: + { + input.readMessage( + getWorkloadIdentityConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 114 + case 122: + { + input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 122 + case 130: + { + distribution_ = input.readStringRequireUtf8(); + + break; + } // case 130 + case 162: + { + com.google.cloud.gkemulticloud.v1.AttachedClusterError m = + input.readMessage( + com.google.cloud.gkemulticloud.v1.AttachedClusterError.parser(), + extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.addMessage(m); + } + break; + } // case 162 + case 170: + { + input.readMessage(getAuthorizationFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 170 + case 178: + { + clusterRegion_ = input.readStringRequireUtf8(); + + break; + } // case 178 + case 186: + { + input.readMessage( + getMonitoringConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 186 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name of this resource.
+     * Cluster names are formatted as
+     * `projects/<project-number>/locations/<region>/attachedClusters/<cluster-id>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on GCP resource names.
+     * 
+ * + * 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 name of this resource.
+     * Cluster names are formatted as
+     * `projects/<project-number>/locations/<region>/attachedClusters/<cluster-id>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on GCP resource names.
+     * 
+ * + * 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 name of this resource.
+     * Cluster names are formatted as
+     * `projects/<project-number>/locations/<region>/attachedClusters/<cluster-id>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on GCP resource names.
+     * 
+ * + * 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; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of this resource.
+     * Cluster names are formatted as
+     * `projects/<project-number>/locations/<region>/attachedClusters/<cluster-id>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on GCP resource names.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of this resource.
+     * Cluster names are formatted as
+     * `projects/<project-number>/locations/<region>/attachedClusters/<cluster-id>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on GCP resource names.
+     * 
+ * + * 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; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Optional. A human readable description of this cluster.
+     * Cannot be longer than 255 UTF-8 encoded bytes.
+     * 
+ * + * 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. A human readable description of this cluster.
+     * Cannot be longer than 255 UTF-8 encoded bytes.
+     * 
+ * + * 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. A human readable description of this cluster.
+     * Cannot be longer than 255 UTF-8 encoded bytes.
+     * 
+ * + * 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A human readable description of this cluster.
+     * Cannot be longer than 255 UTF-8 encoded bytes.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A human readable description of this cluster.
+     * Cannot be longer than 255 UTF-8 encoded bytes.
+     * 
+ * + * 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; + onChanged(); + return this; + } + + private com.google.cloud.gkemulticloud.v1.AttachedOidcConfig oidcConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AttachedOidcConfig, + com.google.cloud.gkemulticloud.v1.AttachedOidcConfig.Builder, + com.google.cloud.gkemulticloud.v1.AttachedOidcConfigOrBuilder> + oidcConfigBuilder_; + /** + * + * + *
+     * Required. OpenID Connect (OIDC) configuration for the cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the oidcConfig field is set. + */ + public boolean hasOidcConfig() { + return oidcConfigBuilder_ != null || oidcConfig_ != null; + } + /** + * + * + *
+     * Required. OpenID Connect (OIDC) configuration for the cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The oidcConfig. + */ + public com.google.cloud.gkemulticloud.v1.AttachedOidcConfig getOidcConfig() { + if (oidcConfigBuilder_ == null) { + return oidcConfig_ == null + ? com.google.cloud.gkemulticloud.v1.AttachedOidcConfig.getDefaultInstance() + : oidcConfig_; + } else { + return oidcConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. OpenID Connect (OIDC) configuration for the cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOidcConfig(com.google.cloud.gkemulticloud.v1.AttachedOidcConfig value) { + if (oidcConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oidcConfig_ = value; + onChanged(); + } else { + oidcConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. OpenID Connect (OIDC) configuration for the cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOidcConfig( + com.google.cloud.gkemulticloud.v1.AttachedOidcConfig.Builder builderForValue) { + if (oidcConfigBuilder_ == null) { + oidcConfig_ = builderForValue.build(); + onChanged(); + } else { + oidcConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. OpenID Connect (OIDC) configuration for the cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeOidcConfig(com.google.cloud.gkemulticloud.v1.AttachedOidcConfig value) { + if (oidcConfigBuilder_ == null) { + if (oidcConfig_ != null) { + oidcConfig_ = + com.google.cloud.gkemulticloud.v1.AttachedOidcConfig.newBuilder(oidcConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + oidcConfig_ = value; + } + onChanged(); + } else { + oidcConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. OpenID Connect (OIDC) configuration for the cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearOidcConfig() { + if (oidcConfigBuilder_ == null) { + oidcConfig_ = null; + onChanged(); + } else { + oidcConfig_ = null; + oidcConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. OpenID Connect (OIDC) configuration for the cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkemulticloud.v1.AttachedOidcConfig.Builder getOidcConfigBuilder() { + + onChanged(); + return getOidcConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. OpenID Connect (OIDC) configuration for the cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkemulticloud.v1.AttachedOidcConfigOrBuilder getOidcConfigOrBuilder() { + if (oidcConfigBuilder_ != null) { + return oidcConfigBuilder_.getMessageOrBuilder(); + } else { + return oidcConfig_ == null + ? com.google.cloud.gkemulticloud.v1.AttachedOidcConfig.getDefaultInstance() + : oidcConfig_; + } + } + /** + * + * + *
+     * Required. OpenID Connect (OIDC) configuration for the cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AttachedOidcConfig, + com.google.cloud.gkemulticloud.v1.AttachedOidcConfig.Builder, + com.google.cloud.gkemulticloud.v1.AttachedOidcConfigOrBuilder> + getOidcConfigFieldBuilder() { + if (oidcConfigBuilder_ == null) { + oidcConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AttachedOidcConfig, + com.google.cloud.gkemulticloud.v1.AttachedOidcConfig.Builder, + com.google.cloud.gkemulticloud.v1.AttachedOidcConfigOrBuilder>( + getOidcConfig(), getParentForChildren(), isClean()); + oidcConfig_ = null; + } + return oidcConfigBuilder_; + } + + private java.lang.Object platformVersion_ = ""; + /** + * + * + *
+     * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
+     * You can list all supported versions on a given Google Cloud region by
+     * calling
+     * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
+     * 
+ * + * string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The platformVersion. + */ + public java.lang.String getPlatformVersion() { + java.lang.Object ref = platformVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + platformVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
+     * You can list all supported versions on a given Google Cloud region by
+     * calling
+     * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
+     * 
+ * + * string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for platformVersion. + */ + public com.google.protobuf.ByteString getPlatformVersionBytes() { + java.lang.Object ref = platformVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + platformVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
+     * You can list all supported versions on a given Google Cloud region by
+     * calling
+     * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
+     * 
+ * + * string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The platformVersion to set. + * @return This builder for chaining. + */ + public Builder setPlatformVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + platformVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
+     * You can list all supported versions on a given Google Cloud region by
+     * calling
+     * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
+     * 
+ * + * string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPlatformVersion() { + + platformVersion_ = getDefaultInstance().getPlatformVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
+     * You can list all supported versions on a given Google Cloud region by
+     * calling
+     * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
+     * 
+ * + * string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for platformVersion to set. + * @return This builder for chaining. + */ + public Builder setPlatformVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + platformVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object distribution_ = ""; + /** + * + * + *
+     * Required. The Kubernetes distribution of the underlying attached cluster.
+     * Supported values: ["eks", "aks"].
+     * 
+ * + * string distribution = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The distribution. + */ + public java.lang.String getDistribution() { + java.lang.Object ref = distribution_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + distribution_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The Kubernetes distribution of the underlying attached cluster.
+     * Supported values: ["eks", "aks"].
+     * 
+ * + * string distribution = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for distribution. + */ + public com.google.protobuf.ByteString getDistributionBytes() { + java.lang.Object ref = distribution_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + distribution_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The Kubernetes distribution of the underlying attached cluster.
+     * Supported values: ["eks", "aks"].
+     * 
+ * + * string distribution = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The distribution to set. + * @return This builder for chaining. + */ + public Builder setDistribution(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + distribution_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Kubernetes distribution of the underlying attached cluster.
+     * Supported values: ["eks", "aks"].
+     * 
+ * + * string distribution = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDistribution() { + + distribution_ = getDefaultInstance().getDistribution(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Kubernetes distribution of the underlying attached cluster.
+     * Supported values: ["eks", "aks"].
+     * 
+ * + * string distribution = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for distribution to set. + * @return This builder for chaining. + */ + public Builder setDistributionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + distribution_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterRegion_ = ""; + /** + * + * + *
+     * Output only. The region where this cluster runs.
+     * For EKS clusters, this is a AWS region. For AKS clusters,
+     * this is an Azure region.
+     * 
+ * + * string cluster_region = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The clusterRegion. + */ + public java.lang.String getClusterRegion() { + java.lang.Object ref = clusterRegion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterRegion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The region where this cluster runs.
+     * For EKS clusters, this is a AWS region. For AKS clusters,
+     * this is an Azure region.
+     * 
+ * + * string cluster_region = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for clusterRegion. + */ + public com.google.protobuf.ByteString getClusterRegionBytes() { + java.lang.Object ref = clusterRegion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterRegion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The region where this cluster runs.
+     * For EKS clusters, this is a AWS region. For AKS clusters,
+     * this is an Azure region.
+     * 
+ * + * string cluster_region = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The clusterRegion to set. + * @return This builder for chaining. + */ + public Builder setClusterRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterRegion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The region where this cluster runs.
+     * For EKS clusters, this is a AWS region. For AKS clusters,
+     * this is an Azure region.
+     * 
+ * + * string cluster_region = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearClusterRegion() { + + clusterRegion_ = getDefaultInstance().getClusterRegion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The region where this cluster runs.
+     * For EKS clusters, this is a AWS region. For AKS clusters,
+     * this is an Azure region.
+     * 
+ * + * string cluster_region = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for clusterRegion to set. + * @return This builder for chaining. + */ + public Builder setClusterRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterRegion_ = value; + onChanged(); + return this; + } + + private com.google.cloud.gkemulticloud.v1.Fleet fleet_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.Fleet, + com.google.cloud.gkemulticloud.v1.Fleet.Builder, + com.google.cloud.gkemulticloud.v1.FleetOrBuilder> + fleetBuilder_; + /** + * + * + *
+     * Required. Fleet configuration.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the fleet field is set. + */ + public boolean hasFleet() { + return fleetBuilder_ != null || fleet_ != null; + } + /** + * + * + *
+     * Required. Fleet configuration.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The fleet. + */ + public com.google.cloud.gkemulticloud.v1.Fleet getFleet() { + if (fleetBuilder_ == null) { + return fleet_ == null + ? com.google.cloud.gkemulticloud.v1.Fleet.getDefaultInstance() + : fleet_; + } else { + return fleetBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Fleet configuration.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFleet(com.google.cloud.gkemulticloud.v1.Fleet value) { + if (fleetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fleet_ = value; + onChanged(); + } else { + fleetBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Fleet configuration.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFleet(com.google.cloud.gkemulticloud.v1.Fleet.Builder builderForValue) { + if (fleetBuilder_ == null) { + fleet_ = builderForValue.build(); + onChanged(); + } else { + fleetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Fleet configuration.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFleet(com.google.cloud.gkemulticloud.v1.Fleet value) { + if (fleetBuilder_ == null) { + if (fleet_ != null) { + fleet_ = + com.google.cloud.gkemulticloud.v1.Fleet.newBuilder(fleet_) + .mergeFrom(value) + .buildPartial(); + } else { + fleet_ = value; + } + onChanged(); + } else { + fleetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Fleet configuration.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFleet() { + if (fleetBuilder_ == null) { + fleet_ = null; + onChanged(); + } else { + fleet_ = null; + fleetBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Fleet configuration.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkemulticloud.v1.Fleet.Builder getFleetBuilder() { + + onChanged(); + return getFleetFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Fleet configuration.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkemulticloud.v1.FleetOrBuilder getFleetOrBuilder() { + if (fleetBuilder_ != null) { + return fleetBuilder_.getMessageOrBuilder(); + } else { + return fleet_ == null + ? com.google.cloud.gkemulticloud.v1.Fleet.getDefaultInstance() + : fleet_; + } + } + /** + * + * + *
+     * Required. Fleet configuration.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.Fleet, + com.google.cloud.gkemulticloud.v1.Fleet.Builder, + com.google.cloud.gkemulticloud.v1.FleetOrBuilder> + getFleetFieldBuilder() { + if (fleetBuilder_ == null) { + fleetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.Fleet, + com.google.cloud.gkemulticloud.v1.Fleet.Builder, + com.google.cloud.gkemulticloud.v1.FleetOrBuilder>( + getFleet(), getParentForChildren(), isClean()); + fleet_ = null; + } + return fleetBuilder_; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. The current state of the cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster.State state = 6 [(.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 the cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster.State state = 6 [(.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; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The current state of the cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedCluster.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.gkemulticloud.v1.AttachedCluster.State result = + com.google.cloud.gkemulticloud.v1.AttachedCluster.State.valueOf(state_); + return result == null + ? com.google.cloud.gkemulticloud.v1.AttachedCluster.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. The current state of the cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.gkemulticloud.v1.AttachedCluster.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The current state of the cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + /** + * + * + *
+     * Output only. A globally unique identifier for the cluster.
+     * 
+ * + * string uid = 7 [(.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. A globally unique identifier for the cluster.
+     * 
+ * + * string uid = 7 [(.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. A globally unique identifier for the cluster.
+     * 
+ * + * string uid = 7 [(.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; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A globally unique identifier for the cluster.
+     * 
+ * + * string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + + uid_ = getDefaultInstance().getUid(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A globally unique identifier for the cluster.
+     * 
+ * + * string uid = 7 [(.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; + onChanged(); + return this; + } + + private boolean reconciling_; + /** + * + * + *
+     * Output only. If set, there are currently changes in flight to the cluster.
+     * 
+ * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + /** + * + * + *
+     * Output only. If set, there are currently changes in flight to the cluster.
+     * 
+ * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The reconciling to set. + * @return This builder for chaining. + */ + public Builder setReconciling(boolean value) { + + reconciling_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If set, there are currently changes in flight to the cluster.
+     * 
+ * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearReconciling() { + + reconciling_ = false; + 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 at which this cluster was registered.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Output only. The time at which this cluster was registered.
+     * 
+ * + * + * .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 at which this cluster was registered.
+     * 
+ * + * + * .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; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The time at which this cluster was registered.
+     * 
+ * + * + * .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(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The time at which this cluster was registered.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The time at which this cluster was registered.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The time at which this cluster was registered.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time at which this cluster was registered.
+     * 
+ * + * + * .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 at which this cluster was registered.
+     * 
+ * + * + * .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 at which this cluster was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + * + * + *
+     * Output only. The time at which this cluster was last 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 at which this cluster was last 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; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The time at which this cluster was last 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(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The time at which this cluster was last 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 (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The time at which this cluster was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The time at which this cluster was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time at which this cluster was last 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 at which this cluster was last 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_; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * Allows clients to perform consistent read-modify-writes
+     * through optimistic concurrency control.
+     * Can be sent on update and delete requests to ensure the
+     * client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 11; + * + * @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; + } + } + /** + * + * + *
+     * Allows clients to perform consistent read-modify-writes
+     * through optimistic concurrency control.
+     * Can be sent on update and delete requests to ensure the
+     * client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 11; + * + * @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; + } + } + /** + * + * + *
+     * Allows clients to perform consistent read-modify-writes
+     * through optimistic concurrency control.
+     * Can be sent on update and delete requests to ensure the
+     * client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 11; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * Allows clients to perform consistent read-modify-writes
+     * through optimistic concurrency control.
+     * Can be sent on update and delete requests to ensure the
+     * client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 11; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + + etag_ = getDefaultInstance().getEtag(); + onChanged(); + return this; + } + /** + * + * + *
+     * Allows clients to perform consistent read-modify-writes
+     * through optimistic concurrency control.
+     * Can be sent on update and delete requests to ensure the
+     * client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 11; + * + * @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; + onChanged(); + return this; + } + + private java.lang.Object kubernetesVersion_ = ""; + /** + * + * + *
+     * Output only. The Kubernetes version of the cluster.
+     * 
+ * + * string kubernetes_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The kubernetesVersion. + */ + public java.lang.String getKubernetesVersion() { + java.lang.Object ref = kubernetesVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kubernetesVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The Kubernetes version of the cluster.
+     * 
+ * + * string kubernetes_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for kubernetesVersion. + */ + public com.google.protobuf.ByteString getKubernetesVersionBytes() { + java.lang.Object ref = kubernetesVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kubernetesVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The Kubernetes version of the cluster.
+     * 
+ * + * string kubernetes_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The kubernetesVersion to set. + * @return This builder for chaining. + */ + public Builder setKubernetesVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kubernetesVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The Kubernetes version of the cluster.
+     * 
+ * + * string kubernetes_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearKubernetesVersion() { + + kubernetesVersion_ = getDefaultInstance().getKubernetesVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The Kubernetes version of the cluster.
+     * 
+ * + * string kubernetes_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for kubernetesVersion to set. + * @return This builder for chaining. + */ + public Builder setKubernetesVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kubernetesVersion_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + onChanged(); + ; + if (annotations_ == null) { + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + * + * + *
+     * Optional. Annotations on the cluster.
+     * This field has the same restrictions as Kubernetes annotations.
+     * The total size of all keys and values combined is limited to 256k.
+     * Key can have 2 segments: prefix (optional) and name (required),
+     * separated by a slash (/).
+     * Prefix must be a DNS subdomain.
+     * Name must be 63 characters or less, begin and end with alphanumerics,
+     * with dashes (-), underscores (_), dots (.), and alphanumerics between.
+     * 
+ * + * map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + * + * + *
+     * Optional. Annotations on the cluster.
+     * This field has the same restrictions as Kubernetes annotations.
+     * The total size of all keys and values combined is limited to 256k.
+     * Key can have 2 segments: prefix (optional) and name (required),
+     * separated by a slash (/).
+     * Prefix must be a DNS subdomain.
+     * Name must be 63 characters or less, begin and end with alphanumerics,
+     * with dashes (-), underscores (_), dots (.), and alphanumerics between.
+     * 
+ * + * map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + * + * + *
+     * Optional. Annotations on the cluster.
+     * This field has the same restrictions as Kubernetes annotations.
+     * The total size of all keys and values combined is limited to 256k.
+     * Key can have 2 segments: prefix (optional) and name (required),
+     * separated by a slash (/).
+     * Prefix must be a DNS subdomain.
+     * Name must be 63 characters or less, begin and end with alphanumerics,
+     * with dashes (-), underscores (_), dots (.), and alphanumerics between.
+     * 
+ * + * map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Optional. Annotations on the cluster.
+     * This field has the same restrictions as Kubernetes annotations.
+     * The total size of all keys and values combined is limited to 256k.
+     * Key can have 2 segments: prefix (optional) and name (required),
+     * separated by a slash (/).
+     * Prefix must be a DNS subdomain.
+     * Name must be 63 characters or less, begin and end with alphanumerics,
+     * with dashes (-), underscores (_), dots (.), and alphanumerics between.
+     * 
+ * + * map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + internalGetMutableAnnotations().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional. Annotations on the cluster.
+     * This field has the same restrictions as Kubernetes annotations.
+     * The total size of all keys and values combined is limited to 256k.
+     * Key can have 2 segments: prefix (optional) and name (required),
+     * separated by a slash (/).
+     * Prefix must be a DNS subdomain.
+     * Name must be 63 characters or less, begin and end with alphanumerics,
+     * with dashes (-), underscores (_), dots (.), and alphanumerics between.
+     * 
+ * + * map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAnnotations() { + return internalGetMutableAnnotations().getMutableMap(); + } + /** + * + * + *
+     * Optional. Annotations on the cluster.
+     * This field has the same restrictions as Kubernetes annotations.
+     * The total size of all keys and values combined is limited to 256k.
+     * Key can have 2 segments: prefix (optional) and name (required),
+     * separated by a slash (/).
+     * Prefix must be a DNS subdomain.
+     * Name must be 63 characters or less, begin and end with alphanumerics,
+     * with dashes (-), underscores (_), dots (.), and alphanumerics between.
+     * 
+ * + * map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + + internalGetMutableAnnotations().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Optional. Annotations on the cluster.
+     * This field has the same restrictions as Kubernetes annotations.
+     * The total size of all keys and values combined is limited to 256k.
+     * Key can have 2 segments: prefix (optional) and name (required),
+     * separated by a slash (/).
+     * Prefix must be a DNS subdomain.
+     * Name must be 63 characters or less, begin and end with alphanumerics,
+     * with dashes (-), underscores (_), dots (.), and alphanumerics between.
+     * 
+ * + * map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); + return this; + } + + private com.google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workloadIdentityConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.WorkloadIdentityConfig, + com.google.cloud.gkemulticloud.v1.WorkloadIdentityConfig.Builder, + com.google.cloud.gkemulticloud.v1.WorkloadIdentityConfigOrBuilder> + workloadIdentityConfigBuilder_; + /** + * + * + *
+     * Output only. Workload Identity settings.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the workloadIdentityConfig field is set. + */ + public boolean hasWorkloadIdentityConfig() { + return workloadIdentityConfigBuilder_ != null || workloadIdentityConfig_ != null; + } + /** + * + * + *
+     * Output only. Workload Identity settings.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The workloadIdentityConfig. + */ + public com.google.cloud.gkemulticloud.v1.WorkloadIdentityConfig getWorkloadIdentityConfig() { + if (workloadIdentityConfigBuilder_ == null) { + return workloadIdentityConfig_ == null + ? com.google.cloud.gkemulticloud.v1.WorkloadIdentityConfig.getDefaultInstance() + : workloadIdentityConfig_; + } else { + return workloadIdentityConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Workload Identity settings.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setWorkloadIdentityConfig( + com.google.cloud.gkemulticloud.v1.WorkloadIdentityConfig value) { + if (workloadIdentityConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workloadIdentityConfig_ = value; + onChanged(); + } else { + workloadIdentityConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Workload Identity settings.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setWorkloadIdentityConfig( + com.google.cloud.gkemulticloud.v1.WorkloadIdentityConfig.Builder builderForValue) { + if (workloadIdentityConfigBuilder_ == null) { + workloadIdentityConfig_ = builderForValue.build(); + onChanged(); + } else { + workloadIdentityConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Workload Identity settings.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeWorkloadIdentityConfig( + com.google.cloud.gkemulticloud.v1.WorkloadIdentityConfig value) { + if (workloadIdentityConfigBuilder_ == null) { + if (workloadIdentityConfig_ != null) { + workloadIdentityConfig_ = + com.google.cloud.gkemulticloud.v1.WorkloadIdentityConfig.newBuilder( + workloadIdentityConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + workloadIdentityConfig_ = value; + } + onChanged(); + } else { + workloadIdentityConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Workload Identity settings.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearWorkloadIdentityConfig() { + if (workloadIdentityConfigBuilder_ == null) { + workloadIdentityConfig_ = null; + onChanged(); + } else { + workloadIdentityConfig_ = null; + workloadIdentityConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Workload Identity settings.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkemulticloud.v1.WorkloadIdentityConfig.Builder + getWorkloadIdentityConfigBuilder() { + + onChanged(); + return getWorkloadIdentityConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Workload Identity settings.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkemulticloud.v1.WorkloadIdentityConfigOrBuilder + getWorkloadIdentityConfigOrBuilder() { + if (workloadIdentityConfigBuilder_ != null) { + return workloadIdentityConfigBuilder_.getMessageOrBuilder(); + } else { + return workloadIdentityConfig_ == null + ? com.google.cloud.gkemulticloud.v1.WorkloadIdentityConfig.getDefaultInstance() + : workloadIdentityConfig_; + } + } + /** + * + * + *
+     * Output only. Workload Identity settings.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.WorkloadIdentityConfig, + com.google.cloud.gkemulticloud.v1.WorkloadIdentityConfig.Builder, + com.google.cloud.gkemulticloud.v1.WorkloadIdentityConfigOrBuilder> + getWorkloadIdentityConfigFieldBuilder() { + if (workloadIdentityConfigBuilder_ == null) { + workloadIdentityConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.WorkloadIdentityConfig, + com.google.cloud.gkemulticloud.v1.WorkloadIdentityConfig.Builder, + com.google.cloud.gkemulticloud.v1.WorkloadIdentityConfigOrBuilder>( + getWorkloadIdentityConfig(), getParentForChildren(), isClean()); + workloadIdentityConfig_ = null; + } + return workloadIdentityConfigBuilder_; + } + + private com.google.cloud.gkemulticloud.v1.LoggingConfig loggingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.LoggingConfig, + com.google.cloud.gkemulticloud.v1.LoggingConfig.Builder, + com.google.cloud.gkemulticloud.v1.LoggingConfigOrBuilder> + loggingConfigBuilder_; + /** + * + * + *
+     * Optional. Logging configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the loggingConfig field is set. + */ + public boolean hasLoggingConfig() { + return loggingConfigBuilder_ != null || loggingConfig_ != null; + } + /** + * + * + *
+     * Optional. Logging configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The loggingConfig. + */ + public com.google.cloud.gkemulticloud.v1.LoggingConfig getLoggingConfig() { + if (loggingConfigBuilder_ == null) { + return loggingConfig_ == null + ? com.google.cloud.gkemulticloud.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; + } else { + return loggingConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Logging configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLoggingConfig(com.google.cloud.gkemulticloud.v1.LoggingConfig value) { + if (loggingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + loggingConfig_ = value; + onChanged(); + } else { + loggingConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Logging configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLoggingConfig( + com.google.cloud.gkemulticloud.v1.LoggingConfig.Builder builderForValue) { + if (loggingConfigBuilder_ == null) { + loggingConfig_ = builderForValue.build(); + onChanged(); + } else { + loggingConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. Logging configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeLoggingConfig(com.google.cloud.gkemulticloud.v1.LoggingConfig value) { + if (loggingConfigBuilder_ == null) { + if (loggingConfig_ != null) { + loggingConfig_ = + com.google.cloud.gkemulticloud.v1.LoggingConfig.newBuilder(loggingConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + loggingConfig_ = value; + } + onChanged(); + } else { + loggingConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Logging configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearLoggingConfig() { + if (loggingConfigBuilder_ == null) { + loggingConfig_ = null; + onChanged(); + } else { + loggingConfig_ = null; + loggingConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. Logging configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkemulticloud.v1.LoggingConfig.Builder getLoggingConfigBuilder() { + + onChanged(); + return getLoggingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Logging configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkemulticloud.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { + if (loggingConfigBuilder_ != null) { + return loggingConfigBuilder_.getMessageOrBuilder(); + } else { + return loggingConfig_ == null + ? com.google.cloud.gkemulticloud.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; + } + } + /** + * + * + *
+     * Optional. Logging configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.LoggingConfig, + com.google.cloud.gkemulticloud.v1.LoggingConfig.Builder, + com.google.cloud.gkemulticloud.v1.LoggingConfigOrBuilder> + getLoggingConfigFieldBuilder() { + if (loggingConfigBuilder_ == null) { + loggingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.LoggingConfig, + com.google.cloud.gkemulticloud.v1.LoggingConfig.Builder, + com.google.cloud.gkemulticloud.v1.LoggingConfigOrBuilder>( + getLoggingConfig(), getParentForChildren(), isClean()); + loggingConfig_ = null; + } + return loggingConfigBuilder_; + } + + private java.util.List errors_ = + java.util.Collections.emptyList(); + + private void ensureErrorsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + errors_ = + new java.util.ArrayList( + errors_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AttachedClusterError, + com.google.cloud.gkemulticloud.v1.AttachedClusterError.Builder, + com.google.cloud.gkemulticloud.v1.AttachedClusterErrorOrBuilder> + errorsBuilder_; + + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getErrorsList() { + if (errorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(errors_); + } else { + return errorsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getErrorsCount() { + if (errorsBuilder_ == null) { + return errors_.size(); + } else { + return errorsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkemulticloud.v1.AttachedClusterError getErrors(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setErrors( + int index, com.google.cloud.gkemulticloud.v1.AttachedClusterError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.set(index, value); + onChanged(); + } else { + errorsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setErrors( + int index, com.google.cloud.gkemulticloud.v1.AttachedClusterError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.set(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors(com.google.cloud.gkemulticloud.v1.AttachedClusterError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(value); + onChanged(); + } else { + errorsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors( + int index, com.google.cloud.gkemulticloud.v1.AttachedClusterError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(index, value); + onChanged(); + } else { + errorsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors( + com.google.cloud.gkemulticloud.v1.AttachedClusterError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors( + int index, com.google.cloud.gkemulticloud.v1.AttachedClusterError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllErrors( + java.lang.Iterable + values) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); + onChanged(); + } else { + errorsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearErrors() { + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + errorsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeErrors(int index) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.remove(index); + onChanged(); + } else { + errorsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkemulticloud.v1.AttachedClusterError.Builder getErrorsBuilder( + int index) { + return getErrorsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkemulticloud.v1.AttachedClusterErrorOrBuilder getErrorsOrBuilder( + int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getErrorsOrBuilderList() { + if (errorsBuilder_ != null) { + return errorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errors_); + } + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkemulticloud.v1.AttachedClusterError.Builder addErrorsBuilder() { + return getErrorsFieldBuilder() + .addBuilder(com.google.cloud.gkemulticloud.v1.AttachedClusterError.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkemulticloud.v1.AttachedClusterError.Builder addErrorsBuilder( + int index) { + return getErrorsFieldBuilder() + .addBuilder( + index, com.google.cloud.gkemulticloud.v1.AttachedClusterError.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getErrorsBuilderList() { + return getErrorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AttachedClusterError, + com.google.cloud.gkemulticloud.v1.AttachedClusterError.Builder, + com.google.cloud.gkemulticloud.v1.AttachedClusterErrorOrBuilder> + getErrorsFieldBuilder() { + if (errorsBuilder_ == null) { + errorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AttachedClusterError, + com.google.cloud.gkemulticloud.v1.AttachedClusterError.Builder, + com.google.cloud.gkemulticloud.v1.AttachedClusterErrorOrBuilder>( + errors_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + errors_ = null; + } + return errorsBuilder_; + } + + private com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization, + com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization.Builder, + com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorizationOrBuilder> + authorizationBuilder_; + /** + * + * + *
+     * Optional. Configuration related to the cluster RBAC settings.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the authorization field is set. + */ + public boolean hasAuthorization() { + return authorizationBuilder_ != null || authorization_ != null; + } + /** + * + * + *
+     * Optional. Configuration related to the cluster RBAC settings.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authorization. + */ + public com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization getAuthorization() { + if (authorizationBuilder_ == null) { + return authorization_ == null + ? com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization.getDefaultInstance() + : authorization_; + } else { + return authorizationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Configuration related to the cluster RBAC settings.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAuthorization( + com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization value) { + if (authorizationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authorization_ = value; + onChanged(); + } else { + authorizationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Configuration related to the cluster RBAC settings.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAuthorization( + com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization.Builder builderForValue) { + if (authorizationBuilder_ == null) { + authorization_ = builderForValue.build(); + onChanged(); + } else { + authorizationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. Configuration related to the cluster RBAC settings.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAuthorization( + com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization value) { + if (authorizationBuilder_ == null) { + if (authorization_ != null) { + authorization_ = + com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization.newBuilder( + authorization_) + .mergeFrom(value) + .buildPartial(); + } else { + authorization_ = value; + } + onChanged(); + } else { + authorizationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Configuration related to the cluster RBAC settings.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAuthorization() { + if (authorizationBuilder_ == null) { + authorization_ = null; + onChanged(); + } else { + authorization_ = null; + authorizationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. Configuration related to the cluster RBAC settings.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization.Builder + getAuthorizationBuilder() { + + onChanged(); + return getAuthorizationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Configuration related to the cluster RBAC settings.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorizationOrBuilder + getAuthorizationOrBuilder() { + if (authorizationBuilder_ != null) { + return authorizationBuilder_.getMessageOrBuilder(); + } else { + return authorization_ == null + ? com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization.getDefaultInstance() + : authorization_; + } + } + /** + * + * + *
+     * Optional. Configuration related to the cluster RBAC settings.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization, + com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization.Builder, + com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorizationOrBuilder> + getAuthorizationFieldBuilder() { + if (authorizationBuilder_ == null) { + authorizationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization, + com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization.Builder, + com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorizationOrBuilder>( + getAuthorization(), getParentForChildren(), isClean()); + authorization_ = null; + } + return authorizationBuilder_; + } + + private com.google.cloud.gkemulticloud.v1.MonitoringConfig monitoringConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.MonitoringConfig, + com.google.cloud.gkemulticloud.v1.MonitoringConfig.Builder, + com.google.cloud.gkemulticloud.v1.MonitoringConfigOrBuilder> + monitoringConfigBuilder_; + /** + * + * + *
+     * Optional. Monitoring configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the monitoringConfig field is set. + */ + public boolean hasMonitoringConfig() { + return monitoringConfigBuilder_ != null || monitoringConfig_ != null; + } + /** + * + * + *
+     * Optional. Monitoring configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The monitoringConfig. + */ + public com.google.cloud.gkemulticloud.v1.MonitoringConfig getMonitoringConfig() { + if (monitoringConfigBuilder_ == null) { + return monitoringConfig_ == null + ? com.google.cloud.gkemulticloud.v1.MonitoringConfig.getDefaultInstance() + : monitoringConfig_; + } else { + return monitoringConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Monitoring configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMonitoringConfig(com.google.cloud.gkemulticloud.v1.MonitoringConfig value) { + if (monitoringConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + monitoringConfig_ = value; + onChanged(); + } else { + monitoringConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Monitoring configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMonitoringConfig( + com.google.cloud.gkemulticloud.v1.MonitoringConfig.Builder builderForValue) { + if (monitoringConfigBuilder_ == null) { + monitoringConfig_ = builderForValue.build(); + onChanged(); + } else { + monitoringConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. Monitoring configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMonitoringConfig(com.google.cloud.gkemulticloud.v1.MonitoringConfig value) { + if (monitoringConfigBuilder_ == null) { + if (monitoringConfig_ != null) { + monitoringConfig_ = + com.google.cloud.gkemulticloud.v1.MonitoringConfig.newBuilder(monitoringConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + monitoringConfig_ = value; + } + onChanged(); + } else { + monitoringConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Monitoring configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMonitoringConfig() { + if (monitoringConfigBuilder_ == null) { + monitoringConfig_ = null; + onChanged(); + } else { + monitoringConfig_ = null; + monitoringConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. Monitoring configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkemulticloud.v1.MonitoringConfig.Builder getMonitoringConfigBuilder() { + + onChanged(); + return getMonitoringConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Monitoring configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkemulticloud.v1.MonitoringConfigOrBuilder + getMonitoringConfigOrBuilder() { + if (monitoringConfigBuilder_ != null) { + return monitoringConfigBuilder_.getMessageOrBuilder(); + } else { + return monitoringConfig_ == null + ? com.google.cloud.gkemulticloud.v1.MonitoringConfig.getDefaultInstance() + : monitoringConfig_; + } + } + /** + * + * + *
+     * Optional. Monitoring configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.MonitoringConfig, + com.google.cloud.gkemulticloud.v1.MonitoringConfig.Builder, + com.google.cloud.gkemulticloud.v1.MonitoringConfigOrBuilder> + getMonitoringConfigFieldBuilder() { + if (monitoringConfigBuilder_ == null) { + monitoringConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.MonitoringConfig, + com.google.cloud.gkemulticloud.v1.MonitoringConfig.Builder, + com.google.cloud.gkemulticloud.v1.MonitoringConfigOrBuilder>( + getMonitoringConfig(), getParentForChildren(), isClean()); + monitoringConfig_ = null; + } + return monitoringConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkemulticloud.v1.AttachedCluster) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkemulticloud.v1.AttachedCluster) + private static final com.google.cloud.gkemulticloud.v1.AttachedCluster DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkemulticloud.v1.AttachedCluster(); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedCluster getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AttachedCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedCluster getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClusterError.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClusterError.java new file mode 100644 index 000000000000..1824a4979b53 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClusterError.java @@ -0,0 +1,616 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_resources.proto + +package com.google.cloud.gkemulticloud.v1; + +/** + * + * + *
+ * AttachedClusterError describes errors found on attached clusters.
+ * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.AttachedClusterError} + */ +public final class AttachedClusterError extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AttachedClusterError) + AttachedClusterErrorOrBuilder { + private static final long serialVersionUID = 0L; + // Use AttachedClusterError.newBuilder() to construct. + private AttachedClusterError(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AttachedClusterError() { + message_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AttachedClusterError(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedClusterError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedClusterError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.AttachedClusterError.class, + com.google.cloud.gkemulticloud.v1.AttachedClusterError.Builder.class); + } + + public static final int MESSAGE_FIELD_NUMBER = 1; + private volatile java.lang.Object message_; + /** + * + * + *
+   * Human-friendly description of the error.
+   * 
+ * + * string message = 1; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + * + * + *
+   * Human-friendly description of the error.
+   * 
+ * + * string message = 1; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkemulticloud.v1.AttachedClusterError)) { + return super.equals(obj); + } + com.google.cloud.gkemulticloud.v1.AttachedClusterError other = + (com.google.cloud.gkemulticloud.v1.AttachedClusterError) obj; + + if (!getMessage().equals(other.getMessage())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClusterError parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClusterError parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClusterError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClusterError parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClusterError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClusterError parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClusterError parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClusterError parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClusterError parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClusterError parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClusterError parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClusterError parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkemulticloud.v1.AttachedClusterError prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * AttachedClusterError describes errors found on attached clusters.
+   * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.AttachedClusterError} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkemulticloud.v1.AttachedClusterError) + com.google.cloud.gkemulticloud.v1.AttachedClusterErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedClusterError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedClusterError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.AttachedClusterError.class, + com.google.cloud.gkemulticloud.v1.AttachedClusterError.Builder.class); + } + + // Construct using com.google.cloud.gkemulticloud.v1.AttachedClusterError.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + message_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedClusterError_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedClusterError getDefaultInstanceForType() { + return com.google.cloud.gkemulticloud.v1.AttachedClusterError.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedClusterError build() { + com.google.cloud.gkemulticloud.v1.AttachedClusterError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedClusterError buildPartial() { + com.google.cloud.gkemulticloud.v1.AttachedClusterError result = + new com.google.cloud.gkemulticloud.v1.AttachedClusterError(this); + result.message_ = message_; + 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.gkemulticloud.v1.AttachedClusterError) { + return mergeFrom((com.google.cloud.gkemulticloud.v1.AttachedClusterError) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.AttachedClusterError other) { + if (other == com.google.cloud.gkemulticloud.v1.AttachedClusterError.getDefaultInstance()) + return this; + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + 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: + { + message_ = input.readStringRequireUtf8(); + + 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 java.lang.Object message_ = ""; + /** + * + * + *
+     * Human-friendly description of the error.
+     * 
+ * + * string message = 1; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Human-friendly description of the error.
+     * 
+ * + * string message = 1; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Human-friendly description of the error.
+     * 
+ * + * string message = 1; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Human-friendly description of the error.
+     * 
+ * + * string message = 1; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + * + * + *
+     * Human-friendly description of the error.
+     * 
+ * + * string message = 1; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkemulticloud.v1.AttachedClusterError) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkemulticloud.v1.AttachedClusterError) + private static final com.google.cloud.gkemulticloud.v1.AttachedClusterError DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkemulticloud.v1.AttachedClusterError(); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClusterError getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AttachedClusterError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedClusterError getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClusterErrorOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClusterErrorOrBuilder.java new file mode 100644 index 000000000000..7563aed57ac3 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClusterErrorOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_resources.proto + +package com.google.cloud.gkemulticloud.v1; + +public interface AttachedClusterErrorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AttachedClusterError) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Human-friendly description of the error.
+   * 
+ * + * string message = 1; + * + * @return The message. + */ + java.lang.String getMessage(); + /** + * + * + *
+   * Human-friendly description of the error.
+   * 
+ * + * string message = 1; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClusterName.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClusterName.java new file mode 100644 index 000000000000..58eda0ac0c06 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClusterName.java @@ -0,0 +1,227 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.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 AttachedClusterName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ATTACHED_CLUSTER = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/attachedClusters/{attached_cluster}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String attachedCluster; + + @Deprecated + protected AttachedClusterName() { + project = null; + location = null; + attachedCluster = null; + } + + private AttachedClusterName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + attachedCluster = Preconditions.checkNotNull(builder.getAttachedCluster()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAttachedCluster() { + return attachedCluster; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AttachedClusterName of(String project, String location, String attachedCluster) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAttachedCluster(attachedCluster) + .build(); + } + + public static String format(String project, String location, String attachedCluster) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAttachedCluster(attachedCluster) + .build() + .toString(); + } + + public static AttachedClusterName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ATTACHED_CLUSTER.validatedMatch( + formattedString, "AttachedClusterName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("attached_cluster")); + } + + 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 (AttachedClusterName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ATTACHED_CLUSTER.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 (attachedCluster != null) { + fieldMapBuilder.put("attached_cluster", attachedCluster); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ATTACHED_CLUSTER.instantiate( + "project", project, "location", location, "attached_cluster", attachedCluster); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + AttachedClusterName that = ((AttachedClusterName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.attachedCluster, that.attachedCluster); + } + 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(attachedCluster); + return h; + } + + /** Builder for projects/{project}/locations/{location}/attachedClusters/{attached_cluster}. */ + public static class Builder { + private String project; + private String location; + private String attachedCluster; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAttachedCluster() { + return attachedCluster; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAttachedCluster(String attachedCluster) { + this.attachedCluster = attachedCluster; + return this; + } + + private Builder(AttachedClusterName attachedClusterName) { + this.project = attachedClusterName.project; + this.location = attachedClusterName.location; + this.attachedCluster = attachedClusterName.attachedCluster; + } + + public AttachedClusterName build() { + return new AttachedClusterName(this); + } + } +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClusterOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClusterOrBuilder.java new file mode 100644 index 000000000000..8ee0c6adb35b --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClusterOrBuilder.java @@ -0,0 +1,777 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_resources.proto + +package com.google.cloud.gkemulticloud.v1; + +public interface AttachedClusterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AttachedCluster) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of this resource.
+   * Cluster names are formatted as
+   * `projects/<project-number>/locations/<region>/attachedClusters/<cluster-id>`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on GCP resource names.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name of this resource.
+   * Cluster names are formatted as
+   * `projects/<project-number>/locations/<region>/attachedClusters/<cluster-id>`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on GCP resource names.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. A human readable description of this cluster.
+   * Cannot be longer than 255 UTF-8 encoded bytes.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional. A human readable description of this cluster.
+   * Cannot be longer than 255 UTF-8 encoded bytes.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Required. OpenID Connect (OIDC) configuration for the cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the oidcConfig field is set. + */ + boolean hasOidcConfig(); + /** + * + * + *
+   * Required. OpenID Connect (OIDC) configuration for the cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The oidcConfig. + */ + com.google.cloud.gkemulticloud.v1.AttachedOidcConfig getOidcConfig(); + /** + * + * + *
+   * Required. OpenID Connect (OIDC) configuration for the cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedOidcConfig oidc_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gkemulticloud.v1.AttachedOidcConfigOrBuilder getOidcConfigOrBuilder(); + + /** + * + * + *
+   * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
+   * You can list all supported versions on a given Google Cloud region by
+   * calling
+   * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
+   * 
+ * + * string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The platformVersion. + */ + java.lang.String getPlatformVersion(); + /** + * + * + *
+   * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
+   * You can list all supported versions on a given Google Cloud region by
+   * calling
+   * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
+   * 
+ * + * string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for platformVersion. + */ + com.google.protobuf.ByteString getPlatformVersionBytes(); + + /** + * + * + *
+   * Required. The Kubernetes distribution of the underlying attached cluster.
+   * Supported values: ["eks", "aks"].
+   * 
+ * + * string distribution = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The distribution. + */ + java.lang.String getDistribution(); + /** + * + * + *
+   * Required. The Kubernetes distribution of the underlying attached cluster.
+   * Supported values: ["eks", "aks"].
+   * 
+ * + * string distribution = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for distribution. + */ + com.google.protobuf.ByteString getDistributionBytes(); + + /** + * + * + *
+   * Output only. The region where this cluster runs.
+   * For EKS clusters, this is a AWS region. For AKS clusters,
+   * this is an Azure region.
+   * 
+ * + * string cluster_region = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The clusterRegion. + */ + java.lang.String getClusterRegion(); + /** + * + * + *
+   * Output only. The region where this cluster runs.
+   * For EKS clusters, this is a AWS region. For AKS clusters,
+   * this is an Azure region.
+   * 
+ * + * string cluster_region = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for clusterRegion. + */ + com.google.protobuf.ByteString getClusterRegionBytes(); + + /** + * + * + *
+   * Required. Fleet configuration.
+   * 
+ * + * .google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the fleet field is set. + */ + boolean hasFleet(); + /** + * + * + *
+   * Required. Fleet configuration.
+   * 
+ * + * .google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The fleet. + */ + com.google.cloud.gkemulticloud.v1.Fleet getFleet(); + /** + * + * + *
+   * Required. Fleet configuration.
+   * 
+ * + * .google.cloud.gkemulticloud.v1.Fleet fleet = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gkemulticloud.v1.FleetOrBuilder getFleetOrBuilder(); + + /** + * + * + *
+   * Output only. The current state of the cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. The current state of the cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.gkemulticloud.v1.AttachedCluster.State getState(); + + /** + * + * + *
+   * Output only. A globally unique identifier for the cluster.
+   * 
+ * + * string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + java.lang.String getUid(); + /** + * + * + *
+   * Output only. A globally unique identifier for the cluster.
+   * 
+ * + * string uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
+   * Output only. If set, there are currently changes in flight to the cluster.
+   * 
+ * + * bool reconciling = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The reconciling. + */ + boolean getReconciling(); + + /** + * + * + *
+   * Output only. The time at which this cluster was registered.
+   * 
+ * + * .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 at which this cluster was registered.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. The time at which this cluster was registered.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The time at which this cluster was last 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 at which this cluster was last 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 at which this cluster was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Allows clients to perform consistent read-modify-writes
+   * through optimistic concurrency control.
+   * Can be sent on update and delete requests to ensure the
+   * client has an up-to-date value before proceeding.
+   * 
+ * + * string etag = 11; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * Allows clients to perform consistent read-modify-writes
+   * through optimistic concurrency control.
+   * Can be sent on update and delete requests to ensure the
+   * client has an up-to-date value before proceeding.
+   * 
+ * + * string etag = 11; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Output only. The Kubernetes version of the cluster.
+   * 
+ * + * string kubernetes_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The kubernetesVersion. + */ + java.lang.String getKubernetesVersion(); + /** + * + * + *
+   * Output only. The Kubernetes version of the cluster.
+   * 
+ * + * string kubernetes_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for kubernetesVersion. + */ + com.google.protobuf.ByteString getKubernetesVersionBytes(); + + /** + * + * + *
+   * Optional. Annotations on the cluster.
+   * This field has the same restrictions as Kubernetes annotations.
+   * The total size of all keys and values combined is limited to 256k.
+   * Key can have 2 segments: prefix (optional) and name (required),
+   * separated by a slash (/).
+   * Prefix must be a DNS subdomain.
+   * Name must be 63 characters or less, begin and end with alphanumerics,
+   * with dashes (-), underscores (_), dots (.), and alphanumerics between.
+   * 
+ * + * map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAnnotationsCount(); + /** + * + * + *
+   * Optional. Annotations on the cluster.
+   * This field has the same restrictions as Kubernetes annotations.
+   * The total size of all keys and values combined is limited to 256k.
+   * Key can have 2 segments: prefix (optional) and name (required),
+   * separated by a slash (/).
+   * Prefix must be a DNS subdomain.
+   * Name must be 63 characters or less, begin and end with alphanumerics,
+   * with dashes (-), underscores (_), dots (.), and alphanumerics between.
+   * 
+ * + * map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsAnnotations(java.lang.String key); + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAnnotations(); + /** + * + * + *
+   * Optional. Annotations on the cluster.
+   * This field has the same restrictions as Kubernetes annotations.
+   * The total size of all keys and values combined is limited to 256k.
+   * Key can have 2 segments: prefix (optional) and name (required),
+   * separated by a slash (/).
+   * Prefix must be a DNS subdomain.
+   * Name must be 63 characters or less, begin and end with alphanumerics,
+   * with dashes (-), underscores (_), dots (.), and alphanumerics between.
+   * 
+ * + * map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getAnnotationsMap(); + /** + * + * + *
+   * Optional. Annotations on the cluster.
+   * This field has the same restrictions as Kubernetes annotations.
+   * The total size of all keys and values combined is limited to 256k.
+   * Key can have 2 segments: prefix (optional) and name (required),
+   * separated by a slash (/).
+   * Prefix must be a DNS subdomain.
+   * Name must be 63 characters or less, begin and end with alphanumerics,
+   * with dashes (-), underscores (_), dots (.), and alphanumerics between.
+   * 
+ * + * map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + + /* nullable */ + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Optional. Annotations on the cluster.
+   * This field has the same restrictions as Kubernetes annotations.
+   * The total size of all keys and values combined is limited to 256k.
+   * Key can have 2 segments: prefix (optional) and name (required),
+   * separated by a slash (/).
+   * Prefix must be a DNS subdomain.
+   * Name must be 63 characters or less, begin and end with alphanumerics,
+   * with dashes (-), underscores (_), dots (.), and alphanumerics between.
+   * 
+ * + * map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getAnnotationsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. Workload Identity settings.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the workloadIdentityConfig field is set. + */ + boolean hasWorkloadIdentityConfig(); + /** + * + * + *
+   * Output only. Workload Identity settings.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The workloadIdentityConfig. + */ + com.google.cloud.gkemulticloud.v1.WorkloadIdentityConfig getWorkloadIdentityConfig(); + /** + * + * + *
+   * Output only. Workload Identity settings.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.WorkloadIdentityConfig workload_identity_config = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkemulticloud.v1.WorkloadIdentityConfigOrBuilder + getWorkloadIdentityConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Logging configuration for this cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the loggingConfig field is set. + */ + boolean hasLoggingConfig(); + /** + * + * + *
+   * Optional. Logging configuration for this cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The loggingConfig. + */ + com.google.cloud.gkemulticloud.v1.LoggingConfig getLoggingConfig(); + /** + * + * + *
+   * Optional. Logging configuration for this cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.LoggingConfig logging_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkemulticloud.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); + + /** + * + * + *
+   * Output only. A set of errors found in the cluster.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getErrorsList(); + /** + * + * + *
+   * Output only. A set of errors found in the cluster.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkemulticloud.v1.AttachedClusterError getErrors(int index); + /** + * + * + *
+   * Output only. A set of errors found in the cluster.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getErrorsCount(); + /** + * + * + *
+   * Output only. A set of errors found in the cluster.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getErrorsOrBuilderList(); + /** + * + * + *
+   * Output only. A set of errors found in the cluster.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkemulticloud.v1.AttachedClusterErrorOrBuilder getErrorsOrBuilder(int index); + + /** + * + * + *
+   * Optional. Configuration related to the cluster RBAC settings.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the authorization field is set. + */ + boolean hasAuthorization(); + /** + * + * + *
+   * Optional. Configuration related to the cluster RBAC settings.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authorization. + */ + com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization getAuthorization(); + /** + * + * + *
+   * Optional. Configuration related to the cluster RBAC settings.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedClustersAuthorization authorization = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorizationOrBuilder + getAuthorizationOrBuilder(); + + /** + * + * + *
+   * Optional. Monitoring configuration for this cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the monitoringConfig field is set. + */ + boolean hasMonitoringConfig(); + /** + * + * + *
+   * Optional. Monitoring configuration for this cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The monitoringConfig. + */ + com.google.cloud.gkemulticloud.v1.MonitoringConfig getMonitoringConfig(); + /** + * + * + *
+   * Optional. Monitoring configuration for this cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkemulticloud.v1.MonitoringConfigOrBuilder getMonitoringConfigOrBuilder(); +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClusterUser.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClusterUser.java new file mode 100644 index 000000000000..c6a82146b754 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClusterUser.java @@ -0,0 +1,616 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_resources.proto + +package com.google.cloud.gkemulticloud.v1; + +/** + * + * + *
+ * Identities of a user-type subject for Attached clusters.
+ * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.AttachedClusterUser} + */ +public final class AttachedClusterUser extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AttachedClusterUser) + AttachedClusterUserOrBuilder { + private static final long serialVersionUID = 0L; + // Use AttachedClusterUser.newBuilder() to construct. + private AttachedClusterUser(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AttachedClusterUser() { + username_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AttachedClusterUser(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedClusterUser_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedClusterUser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.AttachedClusterUser.class, + com.google.cloud.gkemulticloud.v1.AttachedClusterUser.Builder.class); + } + + public static final int USERNAME_FIELD_NUMBER = 1; + private volatile java.lang.Object username_; + /** + * + * + *
+   * Required. The name of the user, e.g. `my-gcp-id@gmail.com`.
+   * 
+ * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + @java.lang.Override + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the user, e.g. `my-gcp-id@gmail.com`.
+   * 
+ * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(username_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, username_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkemulticloud.v1.AttachedClusterUser)) { + return super.equals(obj); + } + com.google.cloud.gkemulticloud.v1.AttachedClusterUser other = + (com.google.cloud.gkemulticloud.v1.AttachedClusterUser) obj; + + if (!getUsername().equals(other.getUsername())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClusterUser parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClusterUser parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClusterUser parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClusterUser parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClusterUser parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClusterUser parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClusterUser parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClusterUser parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClusterUser parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClusterUser parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClusterUser parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClusterUser parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkemulticloud.v1.AttachedClusterUser prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Identities of a user-type subject for Attached clusters.
+   * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.AttachedClusterUser} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkemulticloud.v1.AttachedClusterUser) + com.google.cloud.gkemulticloud.v1.AttachedClusterUserOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedClusterUser_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedClusterUser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.AttachedClusterUser.class, + com.google.cloud.gkemulticloud.v1.AttachedClusterUser.Builder.class); + } + + // Construct using com.google.cloud.gkemulticloud.v1.AttachedClusterUser.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + username_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedClusterUser_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedClusterUser getDefaultInstanceForType() { + return com.google.cloud.gkemulticloud.v1.AttachedClusterUser.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedClusterUser build() { + com.google.cloud.gkemulticloud.v1.AttachedClusterUser result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedClusterUser buildPartial() { + com.google.cloud.gkemulticloud.v1.AttachedClusterUser result = + new com.google.cloud.gkemulticloud.v1.AttachedClusterUser(this); + result.username_ = username_; + 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.gkemulticloud.v1.AttachedClusterUser) { + return mergeFrom((com.google.cloud.gkemulticloud.v1.AttachedClusterUser) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.AttachedClusterUser other) { + if (other == com.google.cloud.gkemulticloud.v1.AttachedClusterUser.getDefaultInstance()) + return this; + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + 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: + { + username_ = input.readStringRequireUtf8(); + + 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 java.lang.Object username_ = ""; + /** + * + * + *
+     * Required. The name of the user, e.g. `my-gcp-id@gmail.com`.
+     * 
+ * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the user, e.g. `my-gcp-id@gmail.com`.
+     * 
+ * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the user, e.g. `my-gcp-id@gmail.com`.
+     * 
+ * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The username to set. + * @return This builder for chaining. + */ + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the user, e.g. `my-gcp-id@gmail.com`.
+     * 
+ * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUsername() { + + username_ = getDefaultInstance().getUsername(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the user, e.g. `my-gcp-id@gmail.com`.
+     * 
+ * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for username to set. + * @return This builder for chaining. + */ + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkemulticloud.v1.AttachedClusterUser) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkemulticloud.v1.AttachedClusterUser) + private static final com.google.cloud.gkemulticloud.v1.AttachedClusterUser DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkemulticloud.v1.AttachedClusterUser(); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClusterUser getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AttachedClusterUser parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedClusterUser getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClusterUserOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClusterUserOrBuilder.java new file mode 100644 index 000000000000..4752fd35e5b9 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClusterUserOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_resources.proto + +package com.google.cloud.gkemulticloud.v1; + +public interface AttachedClusterUserOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AttachedClusterUser) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the user, e.g. `my-gcp-id@gmail.com`.
+   * 
+ * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + java.lang.String getUsername(); + /** + * + * + *
+   * Required. The name of the user, e.g. `my-gcp-id@gmail.com`.
+   * 
+ * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + com.google.protobuf.ByteString getUsernameBytes(); +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersAuthorization.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersAuthorization.java new file mode 100644 index 000000000000..15d27a20f74e --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersAuthorization.java @@ -0,0 +1,1084 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_resources.proto + +package com.google.cloud.gkemulticloud.v1; + +/** + * + * + *
+ * Configuration related to the cluster RBAC settings.
+ * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.AttachedClustersAuthorization} + */ +public final class AttachedClustersAuthorization extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AttachedClustersAuthorization) + AttachedClustersAuthorizationOrBuilder { + private static final long serialVersionUID = 0L; + // Use AttachedClustersAuthorization.newBuilder() to construct. + private AttachedClustersAuthorization(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AttachedClustersAuthorization() { + adminUsers_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AttachedClustersAuthorization(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedClustersAuthorization_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedClustersAuthorization_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization.class, + com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization.Builder.class); + } + + public static final int ADMIN_USERS_FIELD_NUMBER = 1; + private java.util.List adminUsers_; + /** + * + * + *
+   * Required. Users that can perform operations as a cluster admin. A managed
+   * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole
+   * to the users. Up to ten admin users can be provided.
+   * For more info on RBAC, see
+   * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getAdminUsersList() { + return adminUsers_; + } + /** + * + * + *
+   * Required. Users that can perform operations as a cluster admin. A managed
+   * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole
+   * to the users. Up to ten admin users can be provided.
+   * For more info on RBAC, see
+   * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getAdminUsersOrBuilderList() { + return adminUsers_; + } + /** + * + * + *
+   * Required. Users that can perform operations as a cluster admin. A managed
+   * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole
+   * to the users. Up to ten admin users can be provided.
+   * For more info on RBAC, see
+   * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getAdminUsersCount() { + return adminUsers_.size(); + } + /** + * + * + *
+   * Required. Users that can perform operations as a cluster admin. A managed
+   * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole
+   * to the users. Up to ten admin users can be provided.
+   * For more info on RBAC, see
+   * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedClusterUser getAdminUsers(int index) { + return adminUsers_.get(index); + } + /** + * + * + *
+   * Required. Users that can perform operations as a cluster admin. A managed
+   * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole
+   * to the users. Up to ten admin users can be provided.
+   * For more info on RBAC, see
+   * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedClusterUserOrBuilder getAdminUsersOrBuilder( + int index) { + return adminUsers_.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 < adminUsers_.size(); i++) { + output.writeMessage(1, adminUsers_.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 < adminUsers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, adminUsers_.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.gkemulticloud.v1.AttachedClustersAuthorization)) { + return super.equals(obj); + } + com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization other = + (com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization) obj; + + if (!getAdminUsersList().equals(other.getAdminUsersList())) return false; + if (!getUnknownFields().equals(other.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 (getAdminUsersCount() > 0) { + hash = (37 * hash) + ADMIN_USERS_FIELD_NUMBER; + hash = (53 * hash) + getAdminUsersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 the cluster RBAC settings.
+   * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.AttachedClustersAuthorization} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkemulticloud.v1.AttachedClustersAuthorization) + com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorizationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedClustersAuthorization_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedClustersAuthorization_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization.class, + com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization.Builder.class); + } + + // Construct using com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (adminUsersBuilder_ == null) { + adminUsers_ = java.util.Collections.emptyList(); + } else { + adminUsers_ = null; + adminUsersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedClustersAuthorization_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization + getDefaultInstanceForType() { + return com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization build() { + com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization buildPartial() { + com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization result = + new com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization(this); + int from_bitField0_ = bitField0_; + if (adminUsersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + adminUsers_ = java.util.Collections.unmodifiableList(adminUsers_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.adminUsers_ = adminUsers_; + } else { + result.adminUsers_ = adminUsersBuilder_.build(); + } + 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.gkemulticloud.v1.AttachedClustersAuthorization) { + return mergeFrom((com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization other) { + if (other + == com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization.getDefaultInstance()) + return this; + if (adminUsersBuilder_ == null) { + if (!other.adminUsers_.isEmpty()) { + if (adminUsers_.isEmpty()) { + adminUsers_ = other.adminUsers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAdminUsersIsMutable(); + adminUsers_.addAll(other.adminUsers_); + } + onChanged(); + } + } else { + if (!other.adminUsers_.isEmpty()) { + if (adminUsersBuilder_.isEmpty()) { + adminUsersBuilder_.dispose(); + adminUsersBuilder_ = null; + adminUsers_ = other.adminUsers_; + bitField0_ = (bitField0_ & ~0x00000001); + adminUsersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAdminUsersFieldBuilder() + : null; + } else { + adminUsersBuilder_.addAllMessages(other.adminUsers_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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.gkemulticloud.v1.AttachedClusterUser m = + input.readMessage( + com.google.cloud.gkemulticloud.v1.AttachedClusterUser.parser(), + extensionRegistry); + if (adminUsersBuilder_ == null) { + ensureAdminUsersIsMutable(); + adminUsers_.add(m); + } else { + adminUsersBuilder_.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 adminUsers_ = + java.util.Collections.emptyList(); + + private void ensureAdminUsersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + adminUsers_ = + new java.util.ArrayList( + adminUsers_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AttachedClusterUser, + com.google.cloud.gkemulticloud.v1.AttachedClusterUser.Builder, + com.google.cloud.gkemulticloud.v1.AttachedClusterUserOrBuilder> + adminUsersBuilder_; + + /** + * + * + *
+     * Required. Users that can perform operations as a cluster admin. A managed
+     * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole
+     * to the users. Up to ten admin users can be provided.
+     * For more info on RBAC, see
+     * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getAdminUsersList() { + if (adminUsersBuilder_ == null) { + return java.util.Collections.unmodifiableList(adminUsers_); + } else { + return adminUsersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. Users that can perform operations as a cluster admin. A managed
+     * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole
+     * to the users. Up to ten admin users can be provided.
+     * For more info on RBAC, see
+     * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getAdminUsersCount() { + if (adminUsersBuilder_ == null) { + return adminUsers_.size(); + } else { + return adminUsersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. Users that can perform operations as a cluster admin. A managed
+     * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole
+     * to the users. Up to ten admin users can be provided.
+     * For more info on RBAC, see
+     * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkemulticloud.v1.AttachedClusterUser getAdminUsers(int index) { + if (adminUsersBuilder_ == null) { + return adminUsers_.get(index); + } else { + return adminUsersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. Users that can perform operations as a cluster admin. A managed
+     * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole
+     * to the users. Up to ten admin users can be provided.
+     * For more info on RBAC, see
+     * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAdminUsers( + int index, com.google.cloud.gkemulticloud.v1.AttachedClusterUser value) { + if (adminUsersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdminUsersIsMutable(); + adminUsers_.set(index, value); + onChanged(); + } else { + adminUsersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Users that can perform operations as a cluster admin. A managed
+     * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole
+     * to the users. Up to ten admin users can be provided.
+     * For more info on RBAC, see
+     * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAdminUsers( + int index, com.google.cloud.gkemulticloud.v1.AttachedClusterUser.Builder builderForValue) { + if (adminUsersBuilder_ == null) { + ensureAdminUsersIsMutable(); + adminUsers_.set(index, builderForValue.build()); + onChanged(); + } else { + adminUsersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Users that can perform operations as a cluster admin. A managed
+     * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole
+     * to the users. Up to ten admin users can be provided.
+     * For more info on RBAC, see
+     * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAdminUsers(com.google.cloud.gkemulticloud.v1.AttachedClusterUser value) { + if (adminUsersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdminUsersIsMutable(); + adminUsers_.add(value); + onChanged(); + } else { + adminUsersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. Users that can perform operations as a cluster admin. A managed
+     * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole
+     * to the users. Up to ten admin users can be provided.
+     * For more info on RBAC, see
+     * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAdminUsers( + int index, com.google.cloud.gkemulticloud.v1.AttachedClusterUser value) { + if (adminUsersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdminUsersIsMutable(); + adminUsers_.add(index, value); + onChanged(); + } else { + adminUsersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Users that can perform operations as a cluster admin. A managed
+     * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole
+     * to the users. Up to ten admin users can be provided.
+     * For more info on RBAC, see
+     * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAdminUsers( + com.google.cloud.gkemulticloud.v1.AttachedClusterUser.Builder builderForValue) { + if (adminUsersBuilder_ == null) { + ensureAdminUsersIsMutable(); + adminUsers_.add(builderForValue.build()); + onChanged(); + } else { + adminUsersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Users that can perform operations as a cluster admin. A managed
+     * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole
+     * to the users. Up to ten admin users can be provided.
+     * For more info on RBAC, see
+     * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAdminUsers( + int index, com.google.cloud.gkemulticloud.v1.AttachedClusterUser.Builder builderForValue) { + if (adminUsersBuilder_ == null) { + ensureAdminUsersIsMutable(); + adminUsers_.add(index, builderForValue.build()); + onChanged(); + } else { + adminUsersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Users that can perform operations as a cluster admin. A managed
+     * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole
+     * to the users. Up to ten admin users can be provided.
+     * For more info on RBAC, see
+     * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllAdminUsers( + java.lang.Iterable + values) { + if (adminUsersBuilder_ == null) { + ensureAdminUsersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, adminUsers_); + onChanged(); + } else { + adminUsersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. Users that can perform operations as a cluster admin. A managed
+     * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole
+     * to the users. Up to ten admin users can be provided.
+     * For more info on RBAC, see
+     * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAdminUsers() { + if (adminUsersBuilder_ == null) { + adminUsers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + adminUsersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. Users that can perform operations as a cluster admin. A managed
+     * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole
+     * to the users. Up to ten admin users can be provided.
+     * For more info on RBAC, see
+     * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeAdminUsers(int index) { + if (adminUsersBuilder_ == null) { + ensureAdminUsersIsMutable(); + adminUsers_.remove(index); + onChanged(); + } else { + adminUsersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. Users that can perform operations as a cluster admin. A managed
+     * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole
+     * to the users. Up to ten admin users can be provided.
+     * For more info on RBAC, see
+     * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkemulticloud.v1.AttachedClusterUser.Builder getAdminUsersBuilder( + int index) { + return getAdminUsersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. Users that can perform operations as a cluster admin. A managed
+     * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole
+     * to the users. Up to ten admin users can be provided.
+     * For more info on RBAC, see
+     * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkemulticloud.v1.AttachedClusterUserOrBuilder getAdminUsersOrBuilder( + int index) { + if (adminUsersBuilder_ == null) { + return adminUsers_.get(index); + } else { + return adminUsersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. Users that can perform operations as a cluster admin. A managed
+     * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole
+     * to the users. Up to ten admin users can be provided.
+     * For more info on RBAC, see
+     * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getAdminUsersOrBuilderList() { + if (adminUsersBuilder_ != null) { + return adminUsersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(adminUsers_); + } + } + /** + * + * + *
+     * Required. Users that can perform operations as a cluster admin. A managed
+     * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole
+     * to the users. Up to ten admin users can be provided.
+     * For more info on RBAC, see
+     * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkemulticloud.v1.AttachedClusterUser.Builder addAdminUsersBuilder() { + return getAdminUsersFieldBuilder() + .addBuilder(com.google.cloud.gkemulticloud.v1.AttachedClusterUser.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Users that can perform operations as a cluster admin. A managed
+     * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole
+     * to the users. Up to ten admin users can be provided.
+     * For more info on RBAC, see
+     * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkemulticloud.v1.AttachedClusterUser.Builder addAdminUsersBuilder( + int index) { + return getAdminUsersFieldBuilder() + .addBuilder( + index, com.google.cloud.gkemulticloud.v1.AttachedClusterUser.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Users that can perform operations as a cluster admin. A managed
+     * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole
+     * to the users. Up to ten admin users can be provided.
+     * For more info on RBAC, see
+     * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getAdminUsersBuilderList() { + return getAdminUsersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AttachedClusterUser, + com.google.cloud.gkemulticloud.v1.AttachedClusterUser.Builder, + com.google.cloud.gkemulticloud.v1.AttachedClusterUserOrBuilder> + getAdminUsersFieldBuilder() { + if (adminUsersBuilder_ == null) { + adminUsersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AttachedClusterUser, + com.google.cloud.gkemulticloud.v1.AttachedClusterUser.Builder, + com.google.cloud.gkemulticloud.v1.AttachedClusterUserOrBuilder>( + adminUsers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + adminUsers_ = null; + } + return adminUsersBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkemulticloud.v1.AttachedClustersAuthorization) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkemulticloud.v1.AttachedClustersAuthorization) + private static final com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization(); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AttachedClustersAuthorization parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedClustersAuthorization + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersAuthorizationOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersAuthorizationOrBuilder.java new file mode 100644 index 000000000000..7160df533dc4 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersAuthorizationOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_resources.proto + +package com.google.cloud.gkemulticloud.v1; + +public interface AttachedClustersAuthorizationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AttachedClustersAuthorization) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Users that can perform operations as a cluster admin. A managed
+   * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole
+   * to the users. Up to ten admin users can be provided.
+   * For more info on RBAC, see
+   * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getAdminUsersList(); + /** + * + * + *
+   * Required. Users that can perform operations as a cluster admin. A managed
+   * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole
+   * to the users. Up to ten admin users can be provided.
+   * For more info on RBAC, see
+   * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gkemulticloud.v1.AttachedClusterUser getAdminUsers(int index); + /** + * + * + *
+   * Required. Users that can perform operations as a cluster admin. A managed
+   * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole
+   * to the users. Up to ten admin users can be provided.
+   * For more info on RBAC, see
+   * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getAdminUsersCount(); + /** + * + * + *
+   * Required. Users that can perform operations as a cluster admin. A managed
+   * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole
+   * to the users. Up to ten admin users can be provided.
+   * For more info on RBAC, see
+   * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getAdminUsersOrBuilderList(); + /** + * + * + *
+   * Required. Users that can perform operations as a cluster admin. A managed
+   * ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole
+   * to the users. Up to ten admin users can be provided.
+   * For more info on RBAC, see
+   * https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gkemulticloud.v1.AttachedClusterUserOrBuilder getAdminUsersOrBuilder(int index); +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedOidcConfig.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedOidcConfig.java new file mode 100644 index 000000000000..bd58e7eafc17 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedOidcConfig.java @@ -0,0 +1,746 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_resources.proto + +package com.google.cloud.gkemulticloud.v1; + +/** + * + * + *
+ * OIDC discovery information of the target cluster.
+ * Kubernetes Service Account (KSA) tokens are JWT tokens signed by the cluster
+ * API server. This fields indicates how GCP services
+ * validate KSA tokens in order to allow system workloads (such as GKE Connect
+ * and telemetry agents) to authenticate back to GCP.
+ * Both clusters with public and private issuer URLs are supported.
+ * Clusters with public issuers only need to specify the `issuer_url` field
+ * while clusters with private issuers need to provide both
+ * `issuer_url` and `oidc_jwks`.
+ * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.AttachedOidcConfig} + */ +public final class AttachedOidcConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AttachedOidcConfig) + AttachedOidcConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use AttachedOidcConfig.newBuilder() to construct. + private AttachedOidcConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AttachedOidcConfig() { + issuerUrl_ = ""; + jwks_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AttachedOidcConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedOidcConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedOidcConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.AttachedOidcConfig.class, + com.google.cloud.gkemulticloud.v1.AttachedOidcConfig.Builder.class); + } + + public static final int ISSUER_URL_FIELD_NUMBER = 1; + private volatile java.lang.Object issuerUrl_; + /** + * + * + *
+   * A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://`.
+   * 
+ * + * string issuer_url = 1; + * + * @return The issuerUrl. + */ + @java.lang.Override + public java.lang.String getIssuerUrl() { + java.lang.Object ref = issuerUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + issuerUrl_ = s; + return s; + } + } + /** + * + * + *
+   * A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://`.
+   * 
+ * + * string issuer_url = 1; + * + * @return The bytes for issuerUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIssuerUrlBytes() { + java.lang.Object ref = issuerUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + issuerUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JWKS_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString jwks_; + /** + * + * + *
+   * Optional. OIDC verification keys in JWKS format (RFC 7517).
+   * It contains a list of OIDC verification keys that can be used to verify
+   * OIDC JWTs.
+   * This field is required for cluster that doesn't have a publicly available
+   * discovery endpoint. When provided, it will be directly used
+   * to verify the OIDC JWT asserted by the IDP.
+   * 
+ * + * bytes jwks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The jwks. + */ + @java.lang.Override + public com.google.protobuf.ByteString getJwks() { + return jwks_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(issuerUrl_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, issuerUrl_); + } + if (!jwks_.isEmpty()) { + output.writeBytes(2, jwks_); + } + 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(issuerUrl_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, issuerUrl_); + } + if (!jwks_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, jwks_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkemulticloud.v1.AttachedOidcConfig)) { + return super.equals(obj); + } + com.google.cloud.gkemulticloud.v1.AttachedOidcConfig other = + (com.google.cloud.gkemulticloud.v1.AttachedOidcConfig) obj; + + if (!getIssuerUrl().equals(other.getIssuerUrl())) return false; + if (!getJwks().equals(other.getJwks())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ISSUER_URL_FIELD_NUMBER; + hash = (53 * hash) + getIssuerUrl().hashCode(); + hash = (37 * hash) + JWKS_FIELD_NUMBER; + hash = (53 * hash) + getJwks().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkemulticloud.v1.AttachedOidcConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedOidcConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedOidcConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedOidcConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedOidcConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedOidcConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedOidcConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedOidcConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedOidcConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedOidcConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedOidcConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedOidcConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkemulticloud.v1.AttachedOidcConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * OIDC discovery information of the target cluster.
+   * Kubernetes Service Account (KSA) tokens are JWT tokens signed by the cluster
+   * API server. This fields indicates how GCP services
+   * validate KSA tokens in order to allow system workloads (such as GKE Connect
+   * and telemetry agents) to authenticate back to GCP.
+   * Both clusters with public and private issuer URLs are supported.
+   * Clusters with public issuers only need to specify the `issuer_url` field
+   * while clusters with private issuers need to provide both
+   * `issuer_url` and `oidc_jwks`.
+   * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.AttachedOidcConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkemulticloud.v1.AttachedOidcConfig) + com.google.cloud.gkemulticloud.v1.AttachedOidcConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedOidcConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedOidcConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.AttachedOidcConfig.class, + com.google.cloud.gkemulticloud.v1.AttachedOidcConfig.Builder.class); + } + + // Construct using com.google.cloud.gkemulticloud.v1.AttachedOidcConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + issuerUrl_ = ""; + + jwks_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedOidcConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedOidcConfig getDefaultInstanceForType() { + return com.google.cloud.gkemulticloud.v1.AttachedOidcConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedOidcConfig build() { + com.google.cloud.gkemulticloud.v1.AttachedOidcConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedOidcConfig buildPartial() { + com.google.cloud.gkemulticloud.v1.AttachedOidcConfig result = + new com.google.cloud.gkemulticloud.v1.AttachedOidcConfig(this); + result.issuerUrl_ = issuerUrl_; + result.jwks_ = jwks_; + 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.gkemulticloud.v1.AttachedOidcConfig) { + return mergeFrom((com.google.cloud.gkemulticloud.v1.AttachedOidcConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.AttachedOidcConfig other) { + if (other == com.google.cloud.gkemulticloud.v1.AttachedOidcConfig.getDefaultInstance()) + return this; + if (!other.getIssuerUrl().isEmpty()) { + issuerUrl_ = other.issuerUrl_; + onChanged(); + } + if (other.getJwks() != com.google.protobuf.ByteString.EMPTY) { + setJwks(other.getJwks()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + issuerUrl_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + jwks_ = input.readBytes(); + + 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 java.lang.Object issuerUrl_ = ""; + /** + * + * + *
+     * A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://`.
+     * 
+ * + * string issuer_url = 1; + * + * @return The issuerUrl. + */ + public java.lang.String getIssuerUrl() { + java.lang.Object ref = issuerUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + issuerUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://`.
+     * 
+ * + * string issuer_url = 1; + * + * @return The bytes for issuerUrl. + */ + public com.google.protobuf.ByteString getIssuerUrlBytes() { + java.lang.Object ref = issuerUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + issuerUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://`.
+     * 
+ * + * string issuer_url = 1; + * + * @param value The issuerUrl to set. + * @return This builder for chaining. + */ + public Builder setIssuerUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + issuerUrl_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://`.
+     * 
+ * + * string issuer_url = 1; + * + * @return This builder for chaining. + */ + public Builder clearIssuerUrl() { + + issuerUrl_ = getDefaultInstance().getIssuerUrl(); + onChanged(); + return this; + } + /** + * + * + *
+     * A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://`.
+     * 
+ * + * string issuer_url = 1; + * + * @param value The bytes for issuerUrl to set. + * @return This builder for chaining. + */ + public Builder setIssuerUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + issuerUrl_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString jwks_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
+     * Optional. OIDC verification keys in JWKS format (RFC 7517).
+     * It contains a list of OIDC verification keys that can be used to verify
+     * OIDC JWTs.
+     * This field is required for cluster that doesn't have a publicly available
+     * discovery endpoint. When provided, it will be directly used
+     * to verify the OIDC JWT asserted by the IDP.
+     * 
+ * + * bytes jwks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The jwks. + */ + @java.lang.Override + public com.google.protobuf.ByteString getJwks() { + return jwks_; + } + /** + * + * + *
+     * Optional. OIDC verification keys in JWKS format (RFC 7517).
+     * It contains a list of OIDC verification keys that can be used to verify
+     * OIDC JWTs.
+     * This field is required for cluster that doesn't have a publicly available
+     * discovery endpoint. When provided, it will be directly used
+     * to verify the OIDC JWT asserted by the IDP.
+     * 
+ * + * bytes jwks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The jwks to set. + * @return This builder for chaining. + */ + public Builder setJwks(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + jwks_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. OIDC verification keys in JWKS format (RFC 7517).
+     * It contains a list of OIDC verification keys that can be used to verify
+     * OIDC JWTs.
+     * This field is required for cluster that doesn't have a publicly available
+     * discovery endpoint. When provided, it will be directly used
+     * to verify the OIDC JWT asserted by the IDP.
+     * 
+ * + * bytes jwks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearJwks() { + + jwks_ = getDefaultInstance().getJwks(); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkemulticloud.v1.AttachedOidcConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkemulticloud.v1.AttachedOidcConfig) + private static final com.google.cloud.gkemulticloud.v1.AttachedOidcConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkemulticloud.v1.AttachedOidcConfig(); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedOidcConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AttachedOidcConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedOidcConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedOidcConfigOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedOidcConfigOrBuilder.java new file mode 100644 index 000000000000..19fcb56744ee --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedOidcConfigOrBuilder.java @@ -0,0 +1,68 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_resources.proto + +package com.google.cloud.gkemulticloud.v1; + +public interface AttachedOidcConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AttachedOidcConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://`.
+   * 
+ * + * string issuer_url = 1; + * + * @return The issuerUrl. + */ + java.lang.String getIssuerUrl(); + /** + * + * + *
+   * A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://`.
+   * 
+ * + * string issuer_url = 1; + * + * @return The bytes for issuerUrl. + */ + com.google.protobuf.ByteString getIssuerUrlBytes(); + + /** + * + * + *
+   * Optional. OIDC verification keys in JWKS format (RFC 7517).
+   * It contains a list of OIDC verification keys that can be used to verify
+   * OIDC JWTs.
+   * This field is required for cluster that doesn't have a publicly available
+   * discovery endpoint. When provided, it will be directly used
+   * to verify the OIDC JWT asserted by the IDP.
+   * 
+ * + * bytes jwks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The jwks. + */ + com.google.protobuf.ByteString getJwks(); +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedPlatformVersionInfo.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedPlatformVersionInfo.java new file mode 100644 index 000000000000..d19ce930247e --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedPlatformVersionInfo.java @@ -0,0 +1,619 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_resources.proto + +package com.google.cloud.gkemulticloud.v1; + +/** + * + * + *
+ * Information about a supported Attached Clusters platform version.
+ * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo} + */ +public final class AttachedPlatformVersionInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo) + AttachedPlatformVersionInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use AttachedPlatformVersionInfo.newBuilder() to construct. + private AttachedPlatformVersionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AttachedPlatformVersionInfo() { + version_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AttachedPlatformVersionInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedPlatformVersionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedPlatformVersionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo.class, + com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo.Builder.class); + } + + public static final int VERSION_FIELD_NUMBER = 1; + private volatile java.lang.Object version_; + /** + * + * + *
+   * Platform version name.
+   * 
+ * + * string version = 1; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + * + * + *
+   * Platform version name.
+   * 
+ * + * string version = 1; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = 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(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); + } + 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(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo)) { + return super.equals(obj); + } + com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo other = + (com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo) obj; + + if (!getVersion().equals(other.getVersion())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Information about a supported Attached Clusters platform version.
+   * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo) + com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedPlatformVersionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedPlatformVersionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo.class, + com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo.Builder.class); + } + + // Construct using com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + version_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedPlatformVersionInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo + getDefaultInstanceForType() { + return com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo build() { + com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo buildPartial() { + com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo result = + new com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo(this); + result.version_ = version_; + 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.gkemulticloud.v1.AttachedPlatformVersionInfo) { + return mergeFrom((com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo other) { + if (other + == com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo.getDefaultInstance()) + return this; + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + 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: + { + version_ = input.readStringRequireUtf8(); + + 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 java.lang.Object version_ = ""; + /** + * + * + *
+     * Platform version name.
+     * 
+ * + * string version = 1; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Platform version name.
+     * 
+ * + * string version = 1; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Platform version name.
+     * 
+ * + * string version = 1; + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Platform version name.
+     * 
+ * + * string version = 1; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Platform version name.
+     * 
+ * + * string version = 1; + * + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo) + private static final com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo(); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AttachedPlatformVersionInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedPlatformVersionInfoOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedPlatformVersionInfoOrBuilder.java new file mode 100644 index 000000000000..5d54b4eddf64 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedPlatformVersionInfoOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_resources.proto + +package com.google.cloud.gkemulticloud.v1; + +public interface AttachedPlatformVersionInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Platform version name.
+   * 
+ * + * string version = 1; + * + * @return The version. + */ + java.lang.String getVersion(); + /** + * + * + *
+   * Platform version name.
+   * 
+ * + * string version = 1; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedResourcesProto.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedResourcesProto.java new file mode 100644 index 000000000000..6ba37f39de45 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedResourcesProto.java @@ -0,0 +1,239 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_resources.proto + +package com.google.cloud.gkemulticloud.v1; + +public final class AttachedResourcesProto { + private AttachedResourcesProto() {} + + 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_gkemulticloud_v1_AttachedCluster_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkemulticloud_v1_AttachedCluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkemulticloud_v1_AttachedCluster_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkemulticloud_v1_AttachedCluster_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkemulticloud_v1_AttachedClustersAuthorization_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkemulticloud_v1_AttachedClustersAuthorization_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkemulticloud_v1_AttachedClusterUser_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkemulticloud_v1_AttachedClusterUser_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkemulticloud_v1_AttachedOidcConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkemulticloud_v1_AttachedOidcConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkemulticloud_v1_AttachedServerConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkemulticloud_v1_AttachedServerConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkemulticloud_v1_AttachedPlatformVersionInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkemulticloud_v1_AttachedPlatformVersionInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkemulticloud_v1_AttachedClusterError_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkemulticloud_v1_AttachedClusterError_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/gkemulticloud/v1/attached" + + "_resources.proto\022\035google.cloud.gkemultic" + + "loud.v1\032\037google/api/field_behavior.proto" + + "\032\031google/api/resource.proto\0324google/clou" + + "d/gkemulticloud/v1/common_resources.prot" + + "o\032\037google/protobuf/timestamp.proto\"\314\n\n\017A" + + "ttachedCluster\022\014\n\004name\030\001 \001(\t\022\030\n\013descript" + + "ion\030\002 \001(\tB\003\340A\001\022K\n\013oidc_config\030\003 \001(\01321.go" + + "ogle.cloud.gkemulticloud.v1.AttachedOidc" + + "ConfigB\003\340A\002\022\035\n\020platform_version\030\004 \001(\tB\003\340" + + "A\002\022\031\n\014distribution\030\020 \001(\tB\003\340A\002\022\033\n\016cluster" + + "_region\030\026 \001(\tB\003\340A\003\0228\n\005fleet\030\005 \001(\0132$.goog" + + "le.cloud.gkemulticloud.v1.FleetB\003\340A\002\022H\n\005" + + "state\030\006 \001(\01624.google.cloud.gkemulticloud" + + ".v1.AttachedCluster.StateB\003\340A\003\022\020\n\003uid\030\007 " + + "\001(\tB\003\340A\003\022\030\n\013reconciling\030\010 \001(\010B\003\340A\003\0224\n\013cr" + + "eate_time\030\t \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\0224\n\013update_time\030\n \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\022\014\n\004etag\030\013 \001(\t\022\037\n\022" + + "kubernetes_version\030\014 \001(\tB\003\340A\003\022Y\n\013annotat" + + "ions\030\r \003(\0132?.google.cloud.gkemulticloud." + + "v1.AttachedCluster.AnnotationsEntryB\003\340A\001" + + "\022\\\n\030workload_identity_config\030\016 \001(\01325.goo" + + "gle.cloud.gkemulticloud.v1.WorkloadIdent" + + "ityConfigB\003\340A\003\022I\n\016logging_config\030\017 \001(\0132," + + ".google.cloud.gkemulticloud.v1.LoggingCo" + + "nfigB\003\340A\001\022H\n\006errors\030\024 \003(\01323.google.cloud" + + ".gkemulticloud.v1.AttachedClusterErrorB\003" + + "\340A\003\022X\n\rauthorization\030\025 \001(\0132<.google.clou" + + "d.gkemulticloud.v1.AttachedClustersAutho" + + "rizationB\003\340A\001\022O\n\021monitoring_config\030\027 \001(\013" + + "2/.google.cloud.gkemulticloud.v1.Monitor" + + "ingConfigB\003\340A\001\0322\n\020AnnotationsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"u\n\005State\022\025\n\021S" + + "TATE_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007" + + "RUNNING\020\002\022\017\n\013RECONCILING\020\003\022\014\n\010STOPPING\020\004" + + "\022\t\n\005ERROR\020\005\022\014\n\010DEGRADED\020\006:~\352A{\n,gkemulti" + + "cloud.googleapis.com/AttachedCluster\022Kpr" + + "ojects/{project}/locations/{location}/at" + + "tachedClusters/{attached_cluster}\"m\n\035Att" + + "achedClustersAuthorization\022L\n\013admin_user" + + "s\030\001 \003(\01322.google.cloud.gkemulticloud.v1." + + "AttachedClusterUserB\003\340A\002\",\n\023AttachedClus" + + "terUser\022\025\n\010username\030\001 \001(\tB\003\340A\002\";\n\022Attach" + + "edOidcConfig\022\022\n\nissuer_url\030\001 \001(\t\022\021\n\004jwks" + + "\030\002 \001(\014B\003\340A\001\"\356\001\n\024AttachedServerConfig\022\014\n\004" + + "name\030\001 \001(\t\022R\n\016valid_versions\030\002 \003(\0132:.goo" + + "gle.cloud.gkemulticloud.v1.AttachedPlatf" + + "ormVersionInfo:t\352Aq\n1gkemulticloud.googl" + + "eapis.com/AttachedServerConfig\022 + * AttachedServerConfig provides information about supported + * Kubernetes versions + *
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.AttachedServerConfig} + */ +public final class AttachedServerConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AttachedServerConfig) + AttachedServerConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use AttachedServerConfig.newBuilder() to construct. + private AttachedServerConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AttachedServerConfig() { + name_ = ""; + validVersions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AttachedServerConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedServerConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedServerConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.AttachedServerConfig.class, + com.google.cloud.gkemulticloud.v1.AttachedServerConfig.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The resource name of the config.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The resource name of the config.
+   * 
+ * + * 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 VALID_VERSIONS_FIELD_NUMBER = 2; + private java.util.List + validVersions_; + /** + * + * + *
+   * List of valid platform versions.
+   * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * + */ + @java.lang.Override + public java.util.List + getValidVersionsList() { + return validVersions_; + } + /** + * + * + *
+   * List of valid platform versions.
+   * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfoOrBuilder> + getValidVersionsOrBuilderList() { + return validVersions_; + } + /** + * + * + *
+   * List of valid platform versions.
+   * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * + */ + @java.lang.Override + public int getValidVersionsCount() { + return validVersions_.size(); + } + /** + * + * + *
+   * List of valid platform versions.
+   * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo getValidVersions(int index) { + return validVersions_.get(index); + } + /** + * + * + *
+   * List of valid platform versions.
+   * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfoOrBuilder + getValidVersionsOrBuilder(int index) { + return validVersions_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + for (int i = 0; i < validVersions_.size(); i++) { + output.writeMessage(2, validVersions_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + for (int i = 0; i < validVersions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, validVersions_.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.gkemulticloud.v1.AttachedServerConfig)) { + return super.equals(obj); + } + com.google.cloud.gkemulticloud.v1.AttachedServerConfig other = + (com.google.cloud.gkemulticloud.v1.AttachedServerConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (!getValidVersionsList().equals(other.getValidVersionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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 (getValidVersionsCount() > 0) { + hash = (37 * hash) + VALID_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getValidVersionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkemulticloud.v1.AttachedServerConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedServerConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedServerConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedServerConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedServerConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedServerConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedServerConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedServerConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedServerConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedServerConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedServerConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedServerConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkemulticloud.v1.AttachedServerConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * AttachedServerConfig provides information about supported
+   * Kubernetes versions
+   * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.AttachedServerConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkemulticloud.v1.AttachedServerConfig) + com.google.cloud.gkemulticloud.v1.AttachedServerConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedServerConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedServerConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.AttachedServerConfig.class, + com.google.cloud.gkemulticloud.v1.AttachedServerConfig.Builder.class); + } + + // Construct using com.google.cloud.gkemulticloud.v1.AttachedServerConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (validVersionsBuilder_ == null) { + validVersions_ = java.util.Collections.emptyList(); + } else { + validVersions_ = null; + validVersionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AttachedServerConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedServerConfig getDefaultInstanceForType() { + return com.google.cloud.gkemulticloud.v1.AttachedServerConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedServerConfig build() { + com.google.cloud.gkemulticloud.v1.AttachedServerConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedServerConfig buildPartial() { + com.google.cloud.gkemulticloud.v1.AttachedServerConfig result = + new com.google.cloud.gkemulticloud.v1.AttachedServerConfig(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (validVersionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + validVersions_ = java.util.Collections.unmodifiableList(validVersions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.validVersions_ = validVersions_; + } else { + result.validVersions_ = validVersionsBuilder_.build(); + } + 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.gkemulticloud.v1.AttachedServerConfig) { + return mergeFrom((com.google.cloud.gkemulticloud.v1.AttachedServerConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.AttachedServerConfig other) { + if (other == com.google.cloud.gkemulticloud.v1.AttachedServerConfig.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (validVersionsBuilder_ == null) { + if (!other.validVersions_.isEmpty()) { + if (validVersions_.isEmpty()) { + validVersions_ = other.validVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValidVersionsIsMutable(); + validVersions_.addAll(other.validVersions_); + } + onChanged(); + } + } else { + if (!other.validVersions_.isEmpty()) { + if (validVersionsBuilder_.isEmpty()) { + validVersionsBuilder_.dispose(); + validVersionsBuilder_ = null; + validVersions_ = other.validVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + validVersionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getValidVersionsFieldBuilder() + : null; + } else { + validVersionsBuilder_.addAllMessages(other.validVersions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo m = + input.readMessage( + com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo.parser(), + extensionRegistry); + if (validVersionsBuilder_ == null) { + ensureValidVersionsIsMutable(); + validVersions_.add(m); + } else { + validVersionsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The resource name of the config.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The resource name of the config.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The resource name of the config.
+     * 
+ * + * 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; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the config.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the config.
+     * 
+ * + * 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; + onChanged(); + return this; + } + + private java.util.List + validVersions_ = java.util.Collections.emptyList(); + + private void ensureValidVersionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + validVersions_ = + new java.util.ArrayList( + validVersions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo, + com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo.Builder, + com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfoOrBuilder> + validVersionsBuilder_; + + /** + * + * + *
+     * List of valid platform versions.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * + */ + public java.util.List + getValidVersionsList() { + if (validVersionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(validVersions_); + } else { + return validVersionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of valid platform versions.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * + */ + public int getValidVersionsCount() { + if (validVersionsBuilder_ == null) { + return validVersions_.size(); + } else { + return validVersionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of valid platform versions.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * + */ + public com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo getValidVersions( + int index) { + if (validVersionsBuilder_ == null) { + return validVersions_.get(index); + } else { + return validVersionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of valid platform versions.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * + */ + public Builder setValidVersions( + int index, com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo value) { + if (validVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidVersionsIsMutable(); + validVersions_.set(index, value); + onChanged(); + } else { + validVersionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of valid platform versions.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * + */ + public Builder setValidVersions( + int index, + com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo.Builder builderForValue) { + if (validVersionsBuilder_ == null) { + ensureValidVersionsIsMutable(); + validVersions_.set(index, builderForValue.build()); + onChanged(); + } else { + validVersionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of valid platform versions.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * + */ + public Builder addValidVersions( + com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo value) { + if (validVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidVersionsIsMutable(); + validVersions_.add(value); + onChanged(); + } else { + validVersionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of valid platform versions.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * + */ + public Builder addValidVersions( + int index, com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo value) { + if (validVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidVersionsIsMutable(); + validVersions_.add(index, value); + onChanged(); + } else { + validVersionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of valid platform versions.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * + */ + public Builder addValidVersions( + com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo.Builder builderForValue) { + if (validVersionsBuilder_ == null) { + ensureValidVersionsIsMutable(); + validVersions_.add(builderForValue.build()); + onChanged(); + } else { + validVersionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of valid platform versions.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * + */ + public Builder addValidVersions( + int index, + com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo.Builder builderForValue) { + if (validVersionsBuilder_ == null) { + ensureValidVersionsIsMutable(); + validVersions_.add(index, builderForValue.build()); + onChanged(); + } else { + validVersionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of valid platform versions.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * + */ + public Builder addAllValidVersions( + java.lang.Iterable + values) { + if (validVersionsBuilder_ == null) { + ensureValidVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validVersions_); + onChanged(); + } else { + validVersionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of valid platform versions.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * + */ + public Builder clearValidVersions() { + if (validVersionsBuilder_ == null) { + validVersions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + validVersionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of valid platform versions.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * + */ + public Builder removeValidVersions(int index) { + if (validVersionsBuilder_ == null) { + ensureValidVersionsIsMutable(); + validVersions_.remove(index); + onChanged(); + } else { + validVersionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of valid platform versions.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * + */ + public com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo.Builder + getValidVersionsBuilder(int index) { + return getValidVersionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of valid platform versions.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * + */ + public com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfoOrBuilder + getValidVersionsOrBuilder(int index) { + if (validVersionsBuilder_ == null) { + return validVersions_.get(index); + } else { + return validVersionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of valid platform versions.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * + */ + public java.util.List< + ? extends com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfoOrBuilder> + getValidVersionsOrBuilderList() { + if (validVersionsBuilder_ != null) { + return validVersionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(validVersions_); + } + } + /** + * + * + *
+     * List of valid platform versions.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * + */ + public com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo.Builder + addValidVersionsBuilder() { + return getValidVersionsFieldBuilder() + .addBuilder( + com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo.getDefaultInstance()); + } + /** + * + * + *
+     * List of valid platform versions.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * + */ + public com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo.Builder + addValidVersionsBuilder(int index) { + return getValidVersionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo.getDefaultInstance()); + } + /** + * + * + *
+     * List of valid platform versions.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * + */ + public java.util.List + getValidVersionsBuilderList() { + return getValidVersionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo, + com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo.Builder, + com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfoOrBuilder> + getValidVersionsFieldBuilder() { + if (validVersionsBuilder_ == null) { + validVersionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo, + com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo.Builder, + com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfoOrBuilder>( + validVersions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + validVersions_ = null; + } + return validVersionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkemulticloud.v1.AttachedServerConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkemulticloud.v1.AttachedServerConfig) + private static final com.google.cloud.gkemulticloud.v1.AttachedServerConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkemulticloud.v1.AttachedServerConfig(); + } + + public static com.google.cloud.gkemulticloud.v1.AttachedServerConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AttachedServerConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedServerConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedServerConfigName.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedServerConfigName.java new file mode 100644 index 000000000000..04d6e3a164df --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedServerConfigName.java @@ -0,0 +1,193 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.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 AttachedServerConfigName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/attachedServerConfig"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + + @Deprecated + protected AttachedServerConfigName() { + project = null; + location = null; + } + + private AttachedServerConfigName(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 AttachedServerConfigName 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 AttachedServerConfigName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION.validatedMatch( + formattedString, "AttachedServerConfigName.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 (AttachedServerConfigName 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()) { + AttachedServerConfigName that = ((AttachedServerConfigName) 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}/attachedServerConfig. */ + 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(AttachedServerConfigName attachedServerConfigName) { + this.project = attachedServerConfigName.project; + this.location = attachedServerConfigName.location; + } + + public AttachedServerConfigName build() { + return new AttachedServerConfigName(this); + } + } +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedServerConfigOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedServerConfigOrBuilder.java new file mode 100644 index 000000000000..70dc1c1c2342 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedServerConfigOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_resources.proto + +package com.google.cloud.gkemulticloud.v1; + +public interface AttachedServerConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AttachedServerConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource name of the config.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The resource name of the config.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * List of valid platform versions.
+   * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * + */ + java.util.List + getValidVersionsList(); + /** + * + * + *
+   * List of valid platform versions.
+   * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * + */ + com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo getValidVersions(int index); + /** + * + * + *
+   * List of valid platform versions.
+   * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * + */ + int getValidVersionsCount(); + /** + * + * + *
+   * List of valid platform versions.
+   * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * + */ + java.util.List + getValidVersionsOrBuilderList(); + /** + * + * + *
+   * List of valid platform versions.
+   * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo valid_versions = 2; + * + */ + com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfoOrBuilder getValidVersionsOrBuilder( + int index); +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedServiceProto.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedServiceProto.java new file mode 100644 index 000000000000..45d1ada8d2a7 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedServiceProto.java @@ -0,0 +1,299 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_service.proto + +package com.google.cloud.gkemulticloud.v1; + +public final class AttachedServiceProto { + private AttachedServiceProto() {} + + 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_gkemulticloud_v1_GenerateAttachedClusterInstallManifestRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkemulticloud_v1_GenerateAttachedClusterInstallManifestRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkemulticloud_v1_GenerateAttachedClusterInstallManifestResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkemulticloud_v1_GenerateAttachedClusterInstallManifestResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkemulticloud_v1_CreateAttachedClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkemulticloud_v1_CreateAttachedClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkemulticloud_v1_ImportAttachedClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkemulticloud_v1_ImportAttachedClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkemulticloud_v1_UpdateAttachedClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkemulticloud_v1_UpdateAttachedClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkemulticloud_v1_GetAttachedClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkemulticloud_v1_GetAttachedClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkemulticloud_v1_ListAttachedClustersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkemulticloud_v1_ListAttachedClustersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkemulticloud_v1_ListAttachedClustersResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkemulticloud_v1_ListAttachedClustersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkemulticloud_v1_DeleteAttachedClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkemulticloud_v1_DeleteAttachedClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkemulticloud_v1_GetAttachedServerConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkemulticloud_v1_GetAttachedServerConfigRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/gkemulticloud/v1/attached" + + "_service.proto\022\035google.cloud.gkemulticlo" + + "ud.v1\032\034google/api/annotations.proto\032\027goo" + + "gle/api/client.proto\032\037google/api/field_b" + + "ehavior.proto\032\031google/api/resource.proto" + + "\0326google/cloud/gkemulticloud/v1/attached" + + "_resources.proto\032#google/longrunning/ope" + + "rations.proto\032 google/protobuf/field_mas" + + "k.proto\"\266\001\n-GenerateAttachedClusterInsta" + + "llManifestRequest\022D\n\006parent\030\001 \001(\tB4\340A\002\372A" + + ".\022,gkemulticloud.googleapis.com/Attached" + + "Cluster\022 \n\023attached_cluster_id\030\002 \001(\tB\003\340A" + + "\002\022\035\n\020platform_version\030\003 \001(\tB\003\340A\002\"B\n.Gene" + + "rateAttachedClusterInstallManifestRespon" + + "se\022\020\n\010manifest\030\001 \001(\t\"\354\001\n\034CreateAttachedC" + + "lusterRequest\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\022,g" + + "kemulticloud.googleapis.com/AttachedClus" + + "ter\022M\n\020attached_cluster\030\002 \001(\0132..google.c" + + "loud.gkemulticloud.v1.AttachedClusterB\003\340" + + "A\002\022 \n\023attached_cluster_id\030\003 \001(\tB\003\340A\002\022\025\n\r" + + "validate_only\030\004 \001(\010\"\324\001\n\034ImportAttachedCl" + + "usterRequest\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\022,gk" + + "emulticloud.googleapis.com/AttachedClust" + + "er\022\025\n\rvalidate_only\030\002 \001(\010\022\035\n\020fleet_membe" + + "rship\030\003 \001(\tB\003\340A\002\022\035\n\020platform_version\030\004 \001" + + "(\tB\003\340A\002\022\031\n\014distribution\030\005 \001(\tB\003\340A\002\"\272\001\n\034U" + + "pdateAttachedClusterRequest\022M\n\020attached_" + + "cluster\030\001 \001(\0132..google.cloud.gkemulticlo" + + "ud.v1.AttachedClusterB\003\340A\002\022\025\n\rvalidate_o" + + "nly\030\002 \001(\010\0224\n\013update_mask\030\003 \001(\0132\032.google." + + "protobuf.FieldMaskB\003\340A\002\"_\n\031GetAttachedCl" + + "usterRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,gkem" + + "ulticloud.googleapis.com/AttachedCluster" + + "\"\212\001\n\033ListAttachedClustersRequest\022D\n\006pare" + + "nt\030\001 \001(\tB4\340A\002\372A.\022,gkemulticloud.googleap" + + "is.com/AttachedCluster\022\021\n\tpage_size\030\002 \001(" + + "\005\022\022\n\npage_token\030\003 \001(\t\"\202\001\n\034ListAttachedCl" + + "ustersResponse\022I\n\021attached_clusters\030\001 \003(" + + "\0132..google.cloud.gkemulticloud.v1.Attach" + + "edCluster\022\027\n\017next_page_token\030\002 \001(\t\"\265\001\n\034D" + + "eleteAttachedClusterRequest\022B\n\004name\030\001 \001(" + + "\tB4\340A\002\372A.\n,gkemulticloud.googleapis.com/" + + "AttachedCluster\022\025\n\rvalidate_only\030\002 \001(\010\022\025" + + "\n\rallow_missing\030\003 \001(\010\022\025\n\rignore_errors\030\005" + + " \001(\010\022\014\n\004etag\030\004 \001(\t\"i\n\036GetAttachedServerC" + + "onfigRequest\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1gkem" + + "ulticloud.googleapis.com/AttachedServerC" + + "onfig2\265\020\n\020AttachedClusters\022\231\002\n\025CreateAtt" + + "achedCluster\022;.google.cloud.gkemulticlou" + + "d.v1.CreateAttachedClusterRequest\032\035.goog" + + "le.longrunning.Operation\"\243\001\202\323\344\223\002H\"4/v1/{" + + "parent=projects/*/locations/*}/attachedC" + + "lusters:\020attached_cluster\332A+parent,attac" + + "hed_cluster,attached_cluster_id\312A$\n\017Atta" + + "chedCluster\022\021OperationMetadata\022\233\002\n\025Updat" + + "eAttachedCluster\022;.google.cloud.gkemulti" + + "cloud.v1.UpdateAttachedClusterRequest\032\035." + + "google.longrunning.Operation\"\245\001\202\323\344\223\002Y2E/" + + "v1/{attached_cluster.name=projects/*/loc" + + "ations/*/attachedClusters/*}:\020attached_c" + + "luster\332A\034attached_cluster,update_mask\312A$" + + "\n\017AttachedCluster\022\021OperationMetadata\022\375\001\n" + + "\025ImportAttachedCluster\022;.google.cloud.gk" + + "emulticloud.v1.ImportAttachedClusterRequ" + + "est\032\035.google.longrunning.Operation\"\207\001\202\323\344" + + "\223\002@\";/v1/{parent=projects/*/locations/*}" + + "/attachedClusters:import:\001*\332A\027parent,fle" + + "et_membership\312A$\n\017AttachedCluster\022\021Opera" + + "tionMetadata\022\303\001\n\022GetAttachedCluster\0228.go" + + "ogle.cloud.gkemulticloud.v1.GetAttachedC" + + "lusterRequest\032..google.cloud.gkemulticlo" + + "ud.v1.AttachedCluster\"C\202\323\344\223\0026\0224/v1/{name" + + "=projects/*/locations/*/attachedClusters" + + "/*}\332A\004name\022\326\001\n\024ListAttachedClusters\022:.go" + + "ogle.cloud.gkemulticloud.v1.ListAttached" + + "ClustersRequest\032;.google.cloud.gkemultic" + + "loud.v1.ListAttachedClustersResponse\"E\202\323" + + "\344\223\0026\0224/v1/{parent=projects/*/locations/*" + + "}/attachedClusters\332A\006parent\022\345\001\n\025DeleteAt" + + "tachedCluster\022;.google.cloud.gkemulticlo" + + "ud.v1.DeleteAttachedClusterRequest\032\035.goo" + + "gle.longrunning.Operation\"p\202\323\344\223\0026*4/v1/{" + + "name=projects/*/locations/*/attachedClus" + + "ters/*}\332A\004name\312A*\n\025google.protobuf.Empty" + + "\022\021OperationMetadata\022\324\001\n\027GetAttachedServe" + + "rConfig\022=.google.cloud.gkemulticloud.v1." + + "GetAttachedServerConfigRequest\0323.google." + + "cloud.gkemulticloud.v1.AttachedServerCon" + + "fig\"E\202\323\344\223\0028\0226/v1/{name=projects/*/locati" + + "ons/*/attachedServerConfig}\332A\004name\022\266\002\n&G" + + "enerateAttachedClusterInstallManifest\022L." + + "google.cloud.gkemulticloud.v1.GenerateAt" + + "tachedClusterInstallManifestRequest\032M.go" + + "ogle.cloud.gkemulticloud.v1.GenerateAtta" + + "chedClusterInstallManifestResponse\"o\202\323\344\223" + + "\002L\022J/v1/{parent=projects/*/locations/*}:" + + "generateAttachedClusterInstallManifest\332A" + + "\032parent,attached_cluster_id\032P\312A\034gkemulti" + + "cloud.googleapis.com\322A.https://www.googl" + + "eapis.com/auth/cloud-platformB\352\001\n!com.go" + + "ogle.cloud.gkemulticloud.v1B\024AttachedSer" + + "viceProtoP\001ZJgoogle.golang.org/genproto/" + + "googleapis/cloud/gkemulticloud/v1;gkemul" + + "ticloud\252\002\035Google.Cloud.GkeMultiCloud.V1\312" + + "\002\035Google\\Cloud\\GkeMultiCloud\\V1\352\002 Google" + + "::Cloud::GkeMultiCloud::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.gkemulticloud.v1.AttachedResourcesProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_gkemulticloud_v1_GenerateAttachedClusterInstallManifestRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkemulticloud_v1_GenerateAttachedClusterInstallManifestRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkemulticloud_v1_GenerateAttachedClusterInstallManifestRequest_descriptor, + new java.lang.String[] { + "Parent", "AttachedClusterId", "PlatformVersion", + }); + internal_static_google_cloud_gkemulticloud_v1_GenerateAttachedClusterInstallManifestResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gkemulticloud_v1_GenerateAttachedClusterInstallManifestResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkemulticloud_v1_GenerateAttachedClusterInstallManifestResponse_descriptor, + new java.lang.String[] { + "Manifest", + }); + internal_static_google_cloud_gkemulticloud_v1_CreateAttachedClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_gkemulticloud_v1_CreateAttachedClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkemulticloud_v1_CreateAttachedClusterRequest_descriptor, + new java.lang.String[] { + "Parent", "AttachedCluster", "AttachedClusterId", "ValidateOnly", + }); + internal_static_google_cloud_gkemulticloud_v1_ImportAttachedClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gkemulticloud_v1_ImportAttachedClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkemulticloud_v1_ImportAttachedClusterRequest_descriptor, + new java.lang.String[] { + "Parent", "ValidateOnly", "FleetMembership", "PlatformVersion", "Distribution", + }); + internal_static_google_cloud_gkemulticloud_v1_UpdateAttachedClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_gkemulticloud_v1_UpdateAttachedClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkemulticloud_v1_UpdateAttachedClusterRequest_descriptor, + new java.lang.String[] { + "AttachedCluster", "ValidateOnly", "UpdateMask", + }); + internal_static_google_cloud_gkemulticloud_v1_GetAttachedClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_gkemulticloud_v1_GetAttachedClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkemulticloud_v1_GetAttachedClusterRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkemulticloud_v1_ListAttachedClustersRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_gkemulticloud_v1_ListAttachedClustersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkemulticloud_v1_ListAttachedClustersRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_gkemulticloud_v1_ListAttachedClustersResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_gkemulticloud_v1_ListAttachedClustersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkemulticloud_v1_ListAttachedClustersResponse_descriptor, + new java.lang.String[] { + "AttachedClusters", "NextPageToken", + }); + internal_static_google_cloud_gkemulticloud_v1_DeleteAttachedClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_gkemulticloud_v1_DeleteAttachedClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkemulticloud_v1_DeleteAttachedClusterRequest_descriptor, + new java.lang.String[] { + "Name", "ValidateOnly", "AllowMissing", "IgnoreErrors", "Etag", + }); + internal_static_google_cloud_gkemulticloud_v1_GetAttachedServerConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_gkemulticloud_v1_GetAttachedServerConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkemulticloud_v1_GetAttachedServerConfigRequest_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.gkemulticloud.v1.AttachedResourcesProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsAutoscalingGroupMetricsCollection.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsAutoscalingGroupMetricsCollection.java new file mode 100644 index 000000000000..05ef77441704 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsAutoscalingGroupMetricsCollection.java @@ -0,0 +1,950 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/aws_resources.proto + +package com.google.cloud.gkemulticloud.v1; + +/** + * + * + *
+ * Configuration related to CloudWatch metrics collection in an AWS
+ * Auto Scaling group.
+ * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection} + */ +public final class AwsAutoscalingGroupMetricsCollection + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection) + AwsAutoscalingGroupMetricsCollectionOrBuilder { + private static final long serialVersionUID = 0L; + // Use AwsAutoscalingGroupMetricsCollection.newBuilder() to construct. + private AwsAutoscalingGroupMetricsCollection( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AwsAutoscalingGroupMetricsCollection() { + granularity_ = ""; + metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AwsAutoscalingGroupMetricsCollection(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AwsResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AwsAutoscalingGroupMetricsCollection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AwsResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AwsAutoscalingGroupMetricsCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection.class, + com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection.Builder.class); + } + + public static final int GRANULARITY_FIELD_NUMBER = 1; + private volatile java.lang.Object granularity_; + /** + * + * + *
+   * Required. The frequency at which EC2 Auto Scaling sends aggregated data to
+   * AWS CloudWatch. The only valid value is "1Minute".
+   * 
+ * + * string granularity = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The granularity. + */ + @java.lang.Override + public java.lang.String getGranularity() { + java.lang.Object ref = granularity_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + granularity_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The frequency at which EC2 Auto Scaling sends aggregated data to
+   * AWS CloudWatch. The only valid value is "1Minute".
+   * 
+ * + * string granularity = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for granularity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGranularityBytes() { + java.lang.Object ref = granularity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + granularity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METRICS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList metrics_; + /** + * + * + *
+   * Optional. The metrics to enable. For a list of valid metrics, see
+   * https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html.
+   * If you specify Granularity and don't specify any metrics, all metrics are
+   * enabled.
+   * 
+ * + * repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the metrics. + */ + public com.google.protobuf.ProtocolStringList getMetricsList() { + return metrics_; + } + /** + * + * + *
+   * Optional. The metrics to enable. For a list of valid metrics, see
+   * https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html.
+   * If you specify Granularity and don't specify any metrics, all metrics are
+   * enabled.
+   * 
+ * + * repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of metrics. + */ + public int getMetricsCount() { + return metrics_.size(); + } + /** + * + * + *
+   * Optional. The metrics to enable. For a list of valid metrics, see
+   * https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html.
+   * If you specify Granularity and don't specify any metrics, all metrics are
+   * enabled.
+   * 
+ * + * repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The metrics at the given index. + */ + public java.lang.String getMetrics(int index) { + return metrics_.get(index); + } + /** + * + * + *
+   * Optional. The metrics to enable. For a list of valid metrics, see
+   * https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html.
+   * If you specify Granularity and don't specify any metrics, all metrics are
+   * enabled.
+   * 
+ * + * repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the metrics at the given index. + */ + public com.google.protobuf.ByteString getMetricsBytes(int index) { + return metrics_.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(granularity_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, granularity_); + } + for (int i = 0; i < metrics_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, metrics_.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(granularity_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, granularity_); + } + { + int dataSize = 0; + for (int i = 0; i < metrics_.size(); i++) { + dataSize += computeStringSizeNoTag(metrics_.getRaw(i)); + } + size += dataSize; + size += 1 * getMetricsList().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.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection)) { + return super.equals(obj); + } + com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection other = + (com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection) obj; + + if (!getGranularity().equals(other.getGranularity())) return false; + if (!getMetricsList().equals(other.getMetricsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + GRANULARITY_FIELD_NUMBER; + hash = (53 * hash) + getGranularity().hashCode(); + if (getMetricsCount() > 0) { + hash = (37 * hash) + METRICS_FIELD_NUMBER; + hash = (53 * hash) + getMetricsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 CloudWatch metrics collection in an AWS
+   * Auto Scaling group.
+   * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection) + com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AwsResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AwsAutoscalingGroupMetricsCollection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AwsResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AwsAutoscalingGroupMetricsCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection.class, + com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection.Builder.class); + } + + // Construct using + // com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + granularity_ = ""; + + metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkemulticloud.v1.AwsResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AwsAutoscalingGroupMetricsCollection_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection + getDefaultInstanceForType() { + return com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection build() { + com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection buildPartial() { + com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection result = + new com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection(this); + int from_bitField0_ = bitField0_; + result.granularity_ = granularity_; + if (((bitField0_ & 0x00000001) != 0)) { + metrics_ = metrics_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.metrics_ = metrics_; + 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.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection) { + return mergeFrom( + (com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection other) { + if (other + == com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection + .getDefaultInstance()) return this; + if (!other.getGranularity().isEmpty()) { + granularity_ = other.granularity_; + onChanged(); + } + if (!other.metrics_.isEmpty()) { + if (metrics_.isEmpty()) { + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMetricsIsMutable(); + metrics_.addAll(other.metrics_); + } + 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: + { + granularity_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureMetricsIsMutable(); + metrics_.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 granularity_ = ""; + /** + * + * + *
+     * Required. The frequency at which EC2 Auto Scaling sends aggregated data to
+     * AWS CloudWatch. The only valid value is "1Minute".
+     * 
+ * + * string granularity = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The granularity. + */ + public java.lang.String getGranularity() { + java.lang.Object ref = granularity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + granularity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The frequency at which EC2 Auto Scaling sends aggregated data to
+     * AWS CloudWatch. The only valid value is "1Minute".
+     * 
+ * + * string granularity = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for granularity. + */ + public com.google.protobuf.ByteString getGranularityBytes() { + java.lang.Object ref = granularity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + granularity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The frequency at which EC2 Auto Scaling sends aggregated data to
+     * AWS CloudWatch. The only valid value is "1Minute".
+     * 
+ * + * string granularity = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The granularity to set. + * @return This builder for chaining. + */ + public Builder setGranularity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + granularity_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The frequency at which EC2 Auto Scaling sends aggregated data to
+     * AWS CloudWatch. The only valid value is "1Minute".
+     * 
+ * + * string granularity = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearGranularity() { + + granularity_ = getDefaultInstance().getGranularity(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The frequency at which EC2 Auto Scaling sends aggregated data to
+     * AWS CloudWatch. The only valid value is "1Minute".
+     * 
+ * + * string granularity = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for granularity to set. + * @return This builder for chaining. + */ + public Builder setGranularityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + granularity_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList metrics_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureMetricsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + metrics_ = new com.google.protobuf.LazyStringArrayList(metrics_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Optional. The metrics to enable. For a list of valid metrics, see
+     * https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html.
+     * If you specify Granularity and don't specify any metrics, all metrics are
+     * enabled.
+     * 
+ * + * repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the metrics. + */ + public com.google.protobuf.ProtocolStringList getMetricsList() { + return metrics_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional. The metrics to enable. For a list of valid metrics, see
+     * https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html.
+     * If you specify Granularity and don't specify any metrics, all metrics are
+     * enabled.
+     * 
+ * + * repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of metrics. + */ + public int getMetricsCount() { + return metrics_.size(); + } + /** + * + * + *
+     * Optional. The metrics to enable. For a list of valid metrics, see
+     * https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html.
+     * If you specify Granularity and don't specify any metrics, all metrics are
+     * enabled.
+     * 
+ * + * repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The metrics at the given index. + */ + public java.lang.String getMetrics(int index) { + return metrics_.get(index); + } + /** + * + * + *
+     * Optional. The metrics to enable. For a list of valid metrics, see
+     * https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html.
+     * If you specify Granularity and don't specify any metrics, all metrics are
+     * enabled.
+     * 
+ * + * repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the metrics at the given index. + */ + public com.google.protobuf.ByteString getMetricsBytes(int index) { + return metrics_.getByteString(index); + } + /** + * + * + *
+     * Optional. The metrics to enable. For a list of valid metrics, see
+     * https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html.
+     * If you specify Granularity and don't specify any metrics, all metrics are
+     * enabled.
+     * 
+ * + * repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The metrics to set. + * @return This builder for chaining. + */ + public Builder setMetrics(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The metrics to enable. For a list of valid metrics, see
+     * https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html.
+     * If you specify Granularity and don't specify any metrics, all metrics are
+     * enabled.
+     * 
+ * + * repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The metrics to add. + * @return This builder for chaining. + */ + public Builder addMetrics(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The metrics to enable. For a list of valid metrics, see
+     * https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html.
+     * If you specify Granularity and don't specify any metrics, all metrics are
+     * enabled.
+     * 
+ * + * repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The metrics to add. + * @return This builder for chaining. + */ + public Builder addAllMetrics(java.lang.Iterable values) { + ensureMetricsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The metrics to enable. For a list of valid metrics, see
+     * https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html.
+     * If you specify Granularity and don't specify any metrics, all metrics are
+     * enabled.
+     * 
+ * + * repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMetrics() { + metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The metrics to enable. For a list of valid metrics, see
+     * https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html.
+     * If you specify Granularity and don't specify any metrics, all metrics are
+     * enabled.
+     * 
+ * + * repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the metrics to add. + * @return This builder for chaining. + */ + public Builder addMetricsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureMetricsIsMutable(); + metrics_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection) + private static final com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection(); + } + + public static com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AwsAutoscalingGroupMetricsCollection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsAutoscalingGroupMetricsCollectionOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsAutoscalingGroupMetricsCollectionOrBuilder.java new file mode 100644 index 000000000000..b1a90b33661f --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsAutoscalingGroupMetricsCollectionOrBuilder.java @@ -0,0 +1,115 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/aws_resources.proto + +package com.google.cloud.gkemulticloud.v1; + +public interface AwsAutoscalingGroupMetricsCollectionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The frequency at which EC2 Auto Scaling sends aggregated data to
+   * AWS CloudWatch. The only valid value is "1Minute".
+   * 
+ * + * string granularity = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The granularity. + */ + java.lang.String getGranularity(); + /** + * + * + *
+   * Required. The frequency at which EC2 Auto Scaling sends aggregated data to
+   * AWS CloudWatch. The only valid value is "1Minute".
+   * 
+ * + * string granularity = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for granularity. + */ + com.google.protobuf.ByteString getGranularityBytes(); + + /** + * + * + *
+   * Optional. The metrics to enable. For a list of valid metrics, see
+   * https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html.
+   * If you specify Granularity and don't specify any metrics, all metrics are
+   * enabled.
+   * 
+ * + * repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the metrics. + */ + java.util.List getMetricsList(); + /** + * + * + *
+   * Optional. The metrics to enable. For a list of valid metrics, see
+   * https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html.
+   * If you specify Granularity and don't specify any metrics, all metrics are
+   * enabled.
+   * 
+ * + * repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of metrics. + */ + int getMetricsCount(); + /** + * + * + *
+   * Optional. The metrics to enable. For a list of valid metrics, see
+   * https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html.
+   * If you specify Granularity and don't specify any metrics, all metrics are
+   * enabled.
+   * 
+ * + * repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The metrics at the given index. + */ + java.lang.String getMetrics(int index); + /** + * + * + *
+   * Optional. The metrics to enable. For a list of valid metrics, see
+   * https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html.
+   * If you specify Granularity and don't specify any metrics, all metrics are
+   * enabled.
+   * 
+ * + * repeated string metrics = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the metrics at the given index. + */ + com.google.protobuf.ByteString getMetricsBytes(int index); +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsCluster.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsCluster.java index 1b386f78b5fa..966f0a4aef39 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsCluster.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsCluster.java @@ -46,6 +46,7 @@ private AwsCluster() { uid_ = ""; etag_ = ""; clusterCaCertificate_ = ""; + errors_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -1218,11 +1219,11 @@ public com.google.protobuf.ByteString getClusterCaCertificateBytes() { * * *
-   * Optional. Fleet configuration.
+   * Required. Fleet configuration.
    * 
* * - * .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the fleet field is set. @@ -1235,11 +1236,11 @@ public boolean hasFleet() { * * *
-   * Optional. Fleet configuration.
+   * Required. Fleet configuration.
    * 
* * - * .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = REQUIRED]; * * * @return The fleet. @@ -1252,11 +1253,11 @@ public com.google.cloud.gkemulticloud.v1.Fleet getFleet() { * * *
-   * Optional. Fleet configuration.
+   * Required. Fleet configuration.
    * 
* * - * .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override @@ -1318,6 +1319,140 @@ public com.google.cloud.gkemulticloud.v1.LoggingConfigOrBuilder getLoggingConfig return getLoggingConfig(); } + public static final int ERRORS_FIELD_NUMBER = 20; + private java.util.List errors_; + /** + * + * + *
+   * Output only. A set of errors found in the cluster.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getErrorsList() { + return errors_; + } + /** + * + * + *
+   * Output only. A set of errors found in the cluster.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getErrorsOrBuilderList() { + return errors_; + } + /** + * + * + *
+   * Output only. A set of errors found in the cluster.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getErrorsCount() { + return errors_.size(); + } + /** + * + * + *
+   * Output only. A set of errors found in the cluster.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AwsClusterError getErrors(int index) { + return errors_.get(index); + } + /** + * + * + *
+   * Output only. A set of errors found in the cluster.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AwsClusterErrorOrBuilder getErrorsOrBuilder(int index) { + return errors_.get(index); + } + + public static final int MONITORING_CONFIG_FIELD_NUMBER = 21; + private com.google.cloud.gkemulticloud.v1.MonitoringConfig monitoringConfig_; + /** + * + * + *
+   * Optional. Monitoring configuration for this cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the monitoringConfig field is set. + */ + @java.lang.Override + public boolean hasMonitoringConfig() { + return monitoringConfig_ != null; + } + /** + * + * + *
+   * Optional. Monitoring configuration for this cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The monitoringConfig. + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.MonitoringConfig getMonitoringConfig() { + return monitoringConfig_ == null + ? com.google.cloud.gkemulticloud.v1.MonitoringConfig.getDefaultInstance() + : monitoringConfig_; + } + /** + * + * + *
+   * Optional. Monitoring configuration for this cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.MonitoringConfigOrBuilder + getMonitoringConfigOrBuilder() { + return getMonitoringConfig(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1386,6 +1521,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (loggingConfig_ != null) { output.writeMessage(19, getLoggingConfig()); } + for (int i = 0; i < errors_.size(); i++) { + output.writeMessage(20, errors_.get(i)); + } + if (monitoringConfig_ != null) { + output.writeMessage(21, getMonitoringConfig()); + } getUnknownFields().writeTo(output); } @@ -1458,6 +1599,12 @@ public int getSerializedSize() { if (loggingConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getLoggingConfig()); } + for (int i = 0; i < errors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, errors_.get(i)); + } + if (monitoringConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getMonitoringConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1516,6 +1663,11 @@ public boolean equals(final java.lang.Object obj) { if (hasLoggingConfig()) { if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; } + if (!getErrorsList().equals(other.getErrorsList())) return false; + if (hasMonitoringConfig() != other.hasMonitoringConfig()) return false; + if (hasMonitoringConfig()) { + if (!getMonitoringConfig().equals(other.getMonitoringConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1581,6 +1733,14 @@ public int hashCode() { hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getLoggingConfig().hashCode(); } + if (getErrorsCount() > 0) { + hash = (37 * hash) + ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getErrorsList().hashCode(); + } + if (hasMonitoringConfig()) { + hash = (37 * hash) + MONITORING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMonitoringConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1806,6 +1966,19 @@ public Builder clear() { loggingConfig_ = null; loggingConfigBuilder_ = null; } + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + } else { + errors_ = null; + errorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (monitoringConfigBuilder_ == null) { + monitoringConfig_ = null; + } else { + monitoringConfig_ = null; + monitoringConfigBuilder_ = null; + } return this; } @@ -1885,6 +2058,20 @@ public com.google.cloud.gkemulticloud.v1.AwsCluster buildPartial() { } else { result.loggingConfig_ = loggingConfigBuilder_.build(); } + if (errorsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + errors_ = java.util.Collections.unmodifiableList(errors_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.errors_ = errors_; + } else { + result.errors_ = errorsBuilder_.build(); + } + if (monitoringConfigBuilder_ == null) { + result.monitoringConfig_ = monitoringConfig_; + } else { + result.monitoringConfig_ = monitoringConfigBuilder_.build(); + } onBuilt(); return result; } @@ -1993,6 +2180,36 @@ public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.AwsCluster other) { if (other.hasLoggingConfig()) { mergeLoggingConfig(other.getLoggingConfig()); } + if (errorsBuilder_ == null) { + if (!other.errors_.isEmpty()) { + if (errors_.isEmpty()) { + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureErrorsIsMutable(); + errors_.addAll(other.errors_); + } + onChanged(); + } + } else { + if (!other.errors_.isEmpty()) { + if (errorsBuilder_.isEmpty()) { + errorsBuilder_.dispose(); + errorsBuilder_ = null; + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000002); + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorsFieldBuilder() + : null; + } else { + errorsBuilder_.addAllMessages(other.errors_); + } + } + } + if (other.hasMonitoringConfig()) { + mergeMonitoringConfig(other.getMonitoringConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2133,6 +2350,27 @@ public Builder mergeFrom( break; } // case 154 + case 162: + { + com.google.cloud.gkemulticloud.v1.AwsClusterError m = + input.readMessage( + com.google.cloud.gkemulticloud.v1.AwsClusterError.parser(), + extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.addMessage(m); + } + break; + } // case 162 + case 170: + { + input.readMessage( + getMonitoringConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 170 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4560,11 +4798,11 @@ public Builder setClusterCaCertificateBytes(com.google.protobuf.ByteString value * * *
-     * Optional. Fleet configuration.
+     * Required. Fleet configuration.
      * 
* * - * .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the fleet field is set. @@ -4576,11 +4814,11 @@ public boolean hasFleet() { * * *
-     * Optional. Fleet configuration.
+     * Required. Fleet configuration.
      * 
* * - * .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = REQUIRED]; * * * @return The fleet. @@ -4598,11 +4836,11 @@ public com.google.cloud.gkemulticloud.v1.Fleet getFleet() { * * *
-     * Optional. Fleet configuration.
+     * Required. Fleet configuration.
      * 
* * - * .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setFleet(com.google.cloud.gkemulticloud.v1.Fleet value) { @@ -4622,11 +4860,11 @@ public Builder setFleet(com.google.cloud.gkemulticloud.v1.Fleet value) { * * *
-     * Optional. Fleet configuration.
+     * Required. Fleet configuration.
      * 
* * - * .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setFleet(com.google.cloud.gkemulticloud.v1.Fleet.Builder builderForValue) { @@ -4643,11 +4881,11 @@ public Builder setFleet(com.google.cloud.gkemulticloud.v1.Fleet.Builder builderF * * *
-     * Optional. Fleet configuration.
+     * Required. Fleet configuration.
      * 
* * - * .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder mergeFleet(com.google.cloud.gkemulticloud.v1.Fleet value) { @@ -4671,11 +4909,11 @@ public Builder mergeFleet(com.google.cloud.gkemulticloud.v1.Fleet value) { * * *
-     * Optional. Fleet configuration.
+     * Required. Fleet configuration.
      * 
* * - * .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder clearFleet() { @@ -4693,11 +4931,11 @@ public Builder clearFleet() { * * *
-     * Optional. Fleet configuration.
+     * Required. Fleet configuration.
      * 
* * - * .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.gkemulticloud.v1.Fleet.Builder getFleetBuilder() { @@ -4709,11 +4947,11 @@ public com.google.cloud.gkemulticloud.v1.Fleet.Builder getFleetBuilder() { * * *
-     * Optional. Fleet configuration.
+     * Required. Fleet configuration.
      * 
* * - * .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.gkemulticloud.v1.FleetOrBuilder getFleetOrBuilder() { @@ -4729,11 +4967,11 @@ public com.google.cloud.gkemulticloud.v1.FleetOrBuilder getFleetOrBuilder() { * * *
-     * Optional. Fleet configuration.
+     * Required. Fleet configuration.
      * 
* * - * .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = REQUIRED]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -4957,6 +5195,600 @@ public com.google.cloud.gkemulticloud.v1.LoggingConfigOrBuilder getLoggingConfig return loggingConfigBuilder_; } + private java.util.List errors_ = + java.util.Collections.emptyList(); + + private void ensureErrorsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + errors_ = + new java.util.ArrayList(errors_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AwsClusterError, + com.google.cloud.gkemulticloud.v1.AwsClusterError.Builder, + com.google.cloud.gkemulticloud.v1.AwsClusterErrorOrBuilder> + errorsBuilder_; + + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getErrorsList() { + if (errorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(errors_); + } else { + return errorsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getErrorsCount() { + if (errorsBuilder_ == null) { + return errors_.size(); + } else { + return errorsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkemulticloud.v1.AwsClusterError getErrors(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setErrors(int index, com.google.cloud.gkemulticloud.v1.AwsClusterError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.set(index, value); + onChanged(); + } else { + errorsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setErrors( + int index, com.google.cloud.gkemulticloud.v1.AwsClusterError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.set(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors(com.google.cloud.gkemulticloud.v1.AwsClusterError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(value); + onChanged(); + } else { + errorsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors(int index, com.google.cloud.gkemulticloud.v1.AwsClusterError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(index, value); + onChanged(); + } else { + errorsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors( + com.google.cloud.gkemulticloud.v1.AwsClusterError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors( + int index, com.google.cloud.gkemulticloud.v1.AwsClusterError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllErrors( + java.lang.Iterable values) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); + onChanged(); + } else { + errorsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearErrors() { + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + errorsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeErrors(int index) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.remove(index); + onChanged(); + } else { + errorsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkemulticloud.v1.AwsClusterError.Builder getErrorsBuilder(int index) { + return getErrorsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkemulticloud.v1.AwsClusterErrorOrBuilder getErrorsOrBuilder( + int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getErrorsOrBuilderList() { + if (errorsBuilder_ != null) { + return errorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errors_); + } + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkemulticloud.v1.AwsClusterError.Builder addErrorsBuilder() { + return getErrorsFieldBuilder() + .addBuilder(com.google.cloud.gkemulticloud.v1.AwsClusterError.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkemulticloud.v1.AwsClusterError.Builder addErrorsBuilder(int index) { + return getErrorsFieldBuilder() + .addBuilder( + index, com.google.cloud.gkemulticloud.v1.AwsClusterError.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getErrorsBuilderList() { + return getErrorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AwsClusterError, + com.google.cloud.gkemulticloud.v1.AwsClusterError.Builder, + com.google.cloud.gkemulticloud.v1.AwsClusterErrorOrBuilder> + getErrorsFieldBuilder() { + if (errorsBuilder_ == null) { + errorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AwsClusterError, + com.google.cloud.gkemulticloud.v1.AwsClusterError.Builder, + com.google.cloud.gkemulticloud.v1.AwsClusterErrorOrBuilder>( + errors_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + errors_ = null; + } + return errorsBuilder_; + } + + private com.google.cloud.gkemulticloud.v1.MonitoringConfig monitoringConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.MonitoringConfig, + com.google.cloud.gkemulticloud.v1.MonitoringConfig.Builder, + com.google.cloud.gkemulticloud.v1.MonitoringConfigOrBuilder> + monitoringConfigBuilder_; + /** + * + * + *
+     * Optional. Monitoring configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the monitoringConfig field is set. + */ + public boolean hasMonitoringConfig() { + return monitoringConfigBuilder_ != null || monitoringConfig_ != null; + } + /** + * + * + *
+     * Optional. Monitoring configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The monitoringConfig. + */ + public com.google.cloud.gkemulticloud.v1.MonitoringConfig getMonitoringConfig() { + if (monitoringConfigBuilder_ == null) { + return monitoringConfig_ == null + ? com.google.cloud.gkemulticloud.v1.MonitoringConfig.getDefaultInstance() + : monitoringConfig_; + } else { + return monitoringConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Monitoring configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMonitoringConfig(com.google.cloud.gkemulticloud.v1.MonitoringConfig value) { + if (monitoringConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + monitoringConfig_ = value; + onChanged(); + } else { + monitoringConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Monitoring configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMonitoringConfig( + com.google.cloud.gkemulticloud.v1.MonitoringConfig.Builder builderForValue) { + if (monitoringConfigBuilder_ == null) { + monitoringConfig_ = builderForValue.build(); + onChanged(); + } else { + monitoringConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. Monitoring configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMonitoringConfig(com.google.cloud.gkemulticloud.v1.MonitoringConfig value) { + if (monitoringConfigBuilder_ == null) { + if (monitoringConfig_ != null) { + monitoringConfig_ = + com.google.cloud.gkemulticloud.v1.MonitoringConfig.newBuilder(monitoringConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + monitoringConfig_ = value; + } + onChanged(); + } else { + monitoringConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Monitoring configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMonitoringConfig() { + if (monitoringConfigBuilder_ == null) { + monitoringConfig_ = null; + onChanged(); + } else { + monitoringConfig_ = null; + monitoringConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. Monitoring configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkemulticloud.v1.MonitoringConfig.Builder getMonitoringConfigBuilder() { + + onChanged(); + return getMonitoringConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Monitoring configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkemulticloud.v1.MonitoringConfigOrBuilder + getMonitoringConfigOrBuilder() { + if (monitoringConfigBuilder_ != null) { + return monitoringConfigBuilder_.getMessageOrBuilder(); + } else { + return monitoringConfig_ == null + ? com.google.cloud.gkemulticloud.v1.MonitoringConfig.getDefaultInstance() + : monitoringConfig_; + } + } + /** + * + * + *
+     * Optional. Monitoring configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.MonitoringConfig, + com.google.cloud.gkemulticloud.v1.MonitoringConfig.Builder, + com.google.cloud.gkemulticloud.v1.MonitoringConfigOrBuilder> + getMonitoringConfigFieldBuilder() { + if (monitoringConfigBuilder_ == null) { + monitoringConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.MonitoringConfig, + com.google.cloud.gkemulticloud.v1.MonitoringConfig.Builder, + com.google.cloud.gkemulticloud.v1.MonitoringConfigOrBuilder>( + getMonitoringConfig(), getParentForChildren(), isClean()); + monitoringConfig_ = null; + } + return monitoringConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterError.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterError.java new file mode 100644 index 000000000000..927fed721b4c --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterError.java @@ -0,0 +1,615 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/aws_resources.proto + +package com.google.cloud.gkemulticloud.v1; + +/** + * + * + *
+ * AwsClusterError describes errors found on AWS clusters.
+ * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsClusterError} + */ +public final class AwsClusterError extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AwsClusterError) + AwsClusterErrorOrBuilder { + private static final long serialVersionUID = 0L; + // Use AwsClusterError.newBuilder() to construct. + private AwsClusterError(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AwsClusterError() { + message_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AwsClusterError(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AwsResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AwsClusterError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AwsResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AwsClusterError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.AwsClusterError.class, + com.google.cloud.gkemulticloud.v1.AwsClusterError.Builder.class); + } + + public static final int MESSAGE_FIELD_NUMBER = 1; + private volatile java.lang.Object message_; + /** + * + * + *
+   * Human-friendly description of the error.
+   * 
+ * + * string message = 1; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + * + * + *
+   * Human-friendly description of the error.
+   * 
+ * + * string message = 1; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkemulticloud.v1.AwsClusterError)) { + return super.equals(obj); + } + com.google.cloud.gkemulticloud.v1.AwsClusterError other = + (com.google.cloud.gkemulticloud.v1.AwsClusterError) obj; + + if (!getMessage().equals(other.getMessage())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkemulticloud.v1.AwsClusterError parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AwsClusterError parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AwsClusterError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AwsClusterError parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AwsClusterError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AwsClusterError parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AwsClusterError parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AwsClusterError parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AwsClusterError parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AwsClusterError parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AwsClusterError parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AwsClusterError parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkemulticloud.v1.AwsClusterError prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * AwsClusterError describes errors found on AWS clusters.
+   * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsClusterError} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkemulticloud.v1.AwsClusterError) + com.google.cloud.gkemulticloud.v1.AwsClusterErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AwsResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AwsClusterError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AwsResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AwsClusterError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.AwsClusterError.class, + com.google.cloud.gkemulticloud.v1.AwsClusterError.Builder.class); + } + + // Construct using com.google.cloud.gkemulticloud.v1.AwsClusterError.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + message_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkemulticloud.v1.AwsResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AwsClusterError_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AwsClusterError getDefaultInstanceForType() { + return com.google.cloud.gkemulticloud.v1.AwsClusterError.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AwsClusterError build() { + com.google.cloud.gkemulticloud.v1.AwsClusterError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AwsClusterError buildPartial() { + com.google.cloud.gkemulticloud.v1.AwsClusterError result = + new com.google.cloud.gkemulticloud.v1.AwsClusterError(this); + result.message_ = message_; + 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.gkemulticloud.v1.AwsClusterError) { + return mergeFrom((com.google.cloud.gkemulticloud.v1.AwsClusterError) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.AwsClusterError other) { + if (other == com.google.cloud.gkemulticloud.v1.AwsClusterError.getDefaultInstance()) + return this; + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + 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: + { + message_ = input.readStringRequireUtf8(); + + 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 java.lang.Object message_ = ""; + /** + * + * + *
+     * Human-friendly description of the error.
+     * 
+ * + * string message = 1; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Human-friendly description of the error.
+     * 
+ * + * string message = 1; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Human-friendly description of the error.
+     * 
+ * + * string message = 1; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Human-friendly description of the error.
+     * 
+ * + * string message = 1; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + * + * + *
+     * Human-friendly description of the error.
+     * 
+ * + * string message = 1; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkemulticloud.v1.AwsClusterError) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkemulticloud.v1.AwsClusterError) + private static final com.google.cloud.gkemulticloud.v1.AwsClusterError DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkemulticloud.v1.AwsClusterError(); + } + + public static com.google.cloud.gkemulticloud.v1.AwsClusterError getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AwsClusterError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AwsClusterError getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterErrorOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterErrorOrBuilder.java new file mode 100644 index 000000000000..2f63d89b225d --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterErrorOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/aws_resources.proto + +package com.google.cloud.gkemulticloud.v1; + +public interface AwsClusterErrorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AwsClusterError) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Human-friendly description of the error.
+   * 
+ * + * string message = 1; + * + * @return The message. + */ + java.lang.String getMessage(); + /** + * + * + *
+   * Human-friendly description of the error.
+   * 
+ * + * string message = 1; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterNetworking.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterNetworking.java index 63dafe839a80..9818ef79fc51 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterNetworking.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterNetworking.java @@ -130,9 +130,9 @@ public com.google.protobuf.ByteString getVpcIdBytes() { * * *
-   * Required. All pods in the cluster are assigned an IPv4 address from these ranges.
-   * Only a single range is supported.
-   * This field cannot be changed after creation.
+   * Required. All pods in the cluster are assigned an IPv4 address from these
+   * ranges. Only a single range is supported. This field cannot be changed
+   * after creation.
    * 
* * repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -147,9 +147,9 @@ public com.google.protobuf.ProtocolStringList getPodAddressCidrBlocksList() { * * *
-   * Required. All pods in the cluster are assigned an IPv4 address from these ranges.
-   * Only a single range is supported.
-   * This field cannot be changed after creation.
+   * Required. All pods in the cluster are assigned an IPv4 address from these
+   * ranges. Only a single range is supported. This field cannot be changed
+   * after creation.
    * 
* * repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -164,9 +164,9 @@ public int getPodAddressCidrBlocksCount() { * * *
-   * Required. All pods in the cluster are assigned an IPv4 address from these ranges.
-   * Only a single range is supported.
-   * This field cannot be changed after creation.
+   * Required. All pods in the cluster are assigned an IPv4 address from these
+   * ranges. Only a single range is supported. This field cannot be changed
+   * after creation.
    * 
* * repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -182,9 +182,9 @@ public java.lang.String getPodAddressCidrBlocks(int index) { * * *
-   * Required. All pods in the cluster are assigned an IPv4 address from these ranges.
-   * Only a single range is supported.
-   * This field cannot be changed after creation.
+   * Required. All pods in the cluster are assigned an IPv4 address from these
+   * ranges. Only a single range is supported. This field cannot be changed
+   * after creation.
    * 
* * repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -203,9 +203,9 @@ public com.google.protobuf.ByteString getPodAddressCidrBlocksBytes(int index) { * * *
-   * Required. All services in the cluster are assigned an IPv4 address from these ranges.
-   * Only a single range is supported.
-   * This field cannot be changed after creation.
+   * Required. All services in the cluster are assigned an IPv4 address from
+   * these ranges. Only a single range is supported. This field cannot be
+   * changed after creation.
    * 
* * @@ -221,9 +221,9 @@ public com.google.protobuf.ProtocolStringList getServiceAddressCidrBlocksList() * * *
-   * Required. All services in the cluster are assigned an IPv4 address from these ranges.
-   * Only a single range is supported.
-   * This field cannot be changed after creation.
+   * Required. All services in the cluster are assigned an IPv4 address from
+   * these ranges. Only a single range is supported. This field cannot be
+   * changed after creation.
    * 
* * @@ -239,9 +239,9 @@ public int getServiceAddressCidrBlocksCount() { * * *
-   * Required. All services in the cluster are assigned an IPv4 address from these ranges.
-   * Only a single range is supported.
-   * This field cannot be changed after creation.
+   * Required. All services in the cluster are assigned an IPv4 address from
+   * these ranges. Only a single range is supported. This field cannot be
+   * changed after creation.
    * 
* * @@ -258,9 +258,9 @@ public java.lang.String getServiceAddressCidrBlocks(int index) { * * *
-   * Required. All services in the cluster are assigned an IPv4 address from these ranges.
-   * Only a single range is supported.
-   * This field cannot be changed after creation.
+   * Required. All services in the cluster are assigned an IPv4 address from
+   * these ranges. Only a single range is supported. This field cannot be
+   * changed after creation.
    * 
* * @@ -822,9 +822,9 @@ private void ensurePodAddressCidrBlocksIsMutable() { * * *
-     * Required. All pods in the cluster are assigned an IPv4 address from these ranges.
-     * Only a single range is supported.
-     * This field cannot be changed after creation.
+     * Required. All pods in the cluster are assigned an IPv4 address from these
+     * ranges. Only a single range is supported. This field cannot be changed
+     * after creation.
      * 
* * repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -839,9 +839,9 @@ public com.google.protobuf.ProtocolStringList getPodAddressCidrBlocksList() { * * *
-     * Required. All pods in the cluster are assigned an IPv4 address from these ranges.
-     * Only a single range is supported.
-     * This field cannot be changed after creation.
+     * Required. All pods in the cluster are assigned an IPv4 address from these
+     * ranges. Only a single range is supported. This field cannot be changed
+     * after creation.
      * 
* * repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -856,9 +856,9 @@ public int getPodAddressCidrBlocksCount() { * * *
-     * Required. All pods in the cluster are assigned an IPv4 address from these ranges.
-     * Only a single range is supported.
-     * This field cannot be changed after creation.
+     * Required. All pods in the cluster are assigned an IPv4 address from these
+     * ranges. Only a single range is supported. This field cannot be changed
+     * after creation.
      * 
* * repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -874,9 +874,9 @@ public java.lang.String getPodAddressCidrBlocks(int index) { * * *
-     * Required. All pods in the cluster are assigned an IPv4 address from these ranges.
-     * Only a single range is supported.
-     * This field cannot be changed after creation.
+     * Required. All pods in the cluster are assigned an IPv4 address from these
+     * ranges. Only a single range is supported. This field cannot be changed
+     * after creation.
      * 
* * repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -892,9 +892,9 @@ public com.google.protobuf.ByteString getPodAddressCidrBlocksBytes(int index) { * * *
-     * Required. All pods in the cluster are assigned an IPv4 address from these ranges.
-     * Only a single range is supported.
-     * This field cannot be changed after creation.
+     * Required. All pods in the cluster are assigned an IPv4 address from these
+     * ranges. Only a single range is supported. This field cannot be changed
+     * after creation.
      * 
* * repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -917,9 +917,9 @@ public Builder setPodAddressCidrBlocks(int index, java.lang.String value) { * * *
-     * Required. All pods in the cluster are assigned an IPv4 address from these ranges.
-     * Only a single range is supported.
-     * This field cannot be changed after creation.
+     * Required. All pods in the cluster are assigned an IPv4 address from these
+     * ranges. Only a single range is supported. This field cannot be changed
+     * after creation.
      * 
* * repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -941,9 +941,9 @@ public Builder addPodAddressCidrBlocks(java.lang.String value) { * * *
-     * Required. All pods in the cluster are assigned an IPv4 address from these ranges.
-     * Only a single range is supported.
-     * This field cannot be changed after creation.
+     * Required. All pods in the cluster are assigned an IPv4 address from these
+     * ranges. Only a single range is supported. This field cannot be changed
+     * after creation.
      * 
* * repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -962,9 +962,9 @@ public Builder addAllPodAddressCidrBlocks(java.lang.Iterable v * * *
-     * Required. All pods in the cluster are assigned an IPv4 address from these ranges.
-     * Only a single range is supported.
-     * This field cannot be changed after creation.
+     * Required. All pods in the cluster are assigned an IPv4 address from these
+     * ranges. Only a single range is supported. This field cannot be changed
+     * after creation.
      * 
* * repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -982,9 +982,9 @@ public Builder clearPodAddressCidrBlocks() { * * *
-     * Required. All pods in the cluster are assigned an IPv4 address from these ranges.
-     * Only a single range is supported.
-     * This field cannot be changed after creation.
+     * Required. All pods in the cluster are assigned an IPv4 address from these
+     * ranges. Only a single range is supported. This field cannot be changed
+     * after creation.
      * 
* * repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1018,9 +1018,9 @@ private void ensureServiceAddressCidrBlocksIsMutable() { * * *
-     * Required. All services in the cluster are assigned an IPv4 address from these ranges.
-     * Only a single range is supported.
-     * This field cannot be changed after creation.
+     * Required. All services in the cluster are assigned an IPv4 address from
+     * these ranges. Only a single range is supported. This field cannot be
+     * changed after creation.
      * 
* * @@ -1036,9 +1036,9 @@ public com.google.protobuf.ProtocolStringList getServiceAddressCidrBlocksList() * * *
-     * Required. All services in the cluster are assigned an IPv4 address from these ranges.
-     * Only a single range is supported.
-     * This field cannot be changed after creation.
+     * Required. All services in the cluster are assigned an IPv4 address from
+     * these ranges. Only a single range is supported. This field cannot be
+     * changed after creation.
      * 
* * @@ -1054,9 +1054,9 @@ public int getServiceAddressCidrBlocksCount() { * * *
-     * Required. All services in the cluster are assigned an IPv4 address from these ranges.
-     * Only a single range is supported.
-     * This field cannot be changed after creation.
+     * Required. All services in the cluster are assigned an IPv4 address from
+     * these ranges. Only a single range is supported. This field cannot be
+     * changed after creation.
      * 
* * @@ -1073,9 +1073,9 @@ public java.lang.String getServiceAddressCidrBlocks(int index) { * * *
-     * Required. All services in the cluster are assigned an IPv4 address from these ranges.
-     * Only a single range is supported.
-     * This field cannot be changed after creation.
+     * Required. All services in the cluster are assigned an IPv4 address from
+     * these ranges. Only a single range is supported. This field cannot be
+     * changed after creation.
      * 
* * @@ -1092,9 +1092,9 @@ public com.google.protobuf.ByteString getServiceAddressCidrBlocksBytes(int index * * *
-     * Required. All services in the cluster are assigned an IPv4 address from these ranges.
-     * Only a single range is supported.
-     * This field cannot be changed after creation.
+     * Required. All services in the cluster are assigned an IPv4 address from
+     * these ranges. Only a single range is supported. This field cannot be
+     * changed after creation.
      * 
* * @@ -1118,9 +1118,9 @@ public Builder setServiceAddressCidrBlocks(int index, java.lang.String value) { * * *
-     * Required. All services in the cluster are assigned an IPv4 address from these ranges.
-     * Only a single range is supported.
-     * This field cannot be changed after creation.
+     * Required. All services in the cluster are assigned an IPv4 address from
+     * these ranges. Only a single range is supported. This field cannot be
+     * changed after creation.
      * 
* * @@ -1143,9 +1143,9 @@ public Builder addServiceAddressCidrBlocks(java.lang.String value) { * * *
-     * Required. All services in the cluster are assigned an IPv4 address from these ranges.
-     * Only a single range is supported.
-     * This field cannot be changed after creation.
+     * Required. All services in the cluster are assigned an IPv4 address from
+     * these ranges. Only a single range is supported. This field cannot be
+     * changed after creation.
      * 
* * @@ -1165,9 +1165,9 @@ public Builder addAllServiceAddressCidrBlocks(java.lang.Iterable - * Required. All services in the cluster are assigned an IPv4 address from these ranges. - * Only a single range is supported. - * This field cannot be changed after creation. + * Required. All services in the cluster are assigned an IPv4 address from + * these ranges. Only a single range is supported. This field cannot be + * changed after creation. *
* * @@ -1186,9 +1186,9 @@ public Builder clearServiceAddressCidrBlocks() { * * *
-     * Required. All services in the cluster are assigned an IPv4 address from these ranges.
-     * Only a single range is supported.
-     * This field cannot be changed after creation.
+     * Required. All services in the cluster are assigned an IPv4 address from
+     * these ranges. Only a single range is supported. This field cannot be
+     * changed after creation.
      * 
* * diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterNetworkingOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterNetworkingOrBuilder.java index 42e4e2e47fe1..d905a7429354 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterNetworkingOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterNetworkingOrBuilder.java @@ -56,9 +56,9 @@ public interface AwsClusterNetworkingOrBuilder * * *
-   * Required. All pods in the cluster are assigned an IPv4 address from these ranges.
-   * Only a single range is supported.
-   * This field cannot be changed after creation.
+   * Required. All pods in the cluster are assigned an IPv4 address from these
+   * ranges. Only a single range is supported. This field cannot be changed
+   * after creation.
    * 
* * repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -71,9 +71,9 @@ public interface AwsClusterNetworkingOrBuilder * * *
-   * Required. All pods in the cluster are assigned an IPv4 address from these ranges.
-   * Only a single range is supported.
-   * This field cannot be changed after creation.
+   * Required. All pods in the cluster are assigned an IPv4 address from these
+   * ranges. Only a single range is supported. This field cannot be changed
+   * after creation.
    * 
* * repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -86,9 +86,9 @@ public interface AwsClusterNetworkingOrBuilder * * *
-   * Required. All pods in the cluster are assigned an IPv4 address from these ranges.
-   * Only a single range is supported.
-   * This field cannot be changed after creation.
+   * Required. All pods in the cluster are assigned an IPv4 address from these
+   * ranges. Only a single range is supported. This field cannot be changed
+   * after creation.
    * 
* * repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -102,9 +102,9 @@ public interface AwsClusterNetworkingOrBuilder * * *
-   * Required. All pods in the cluster are assigned an IPv4 address from these ranges.
-   * Only a single range is supported.
-   * This field cannot be changed after creation.
+   * Required. All pods in the cluster are assigned an IPv4 address from these
+   * ranges. Only a single range is supported. This field cannot be changed
+   * after creation.
    * 
* * repeated string pod_address_cidr_blocks = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -119,9 +119,9 @@ public interface AwsClusterNetworkingOrBuilder * * *
-   * Required. All services in the cluster are assigned an IPv4 address from these ranges.
-   * Only a single range is supported.
-   * This field cannot be changed after creation.
+   * Required. All services in the cluster are assigned an IPv4 address from
+   * these ranges. Only a single range is supported. This field cannot be
+   * changed after creation.
    * 
* * @@ -135,9 +135,9 @@ public interface AwsClusterNetworkingOrBuilder * * *
-   * Required. All services in the cluster are assigned an IPv4 address from these ranges.
-   * Only a single range is supported.
-   * This field cannot be changed after creation.
+   * Required. All services in the cluster are assigned an IPv4 address from
+   * these ranges. Only a single range is supported. This field cannot be
+   * changed after creation.
    * 
* * @@ -151,9 +151,9 @@ public interface AwsClusterNetworkingOrBuilder * * *
-   * Required. All services in the cluster are assigned an IPv4 address from these ranges.
-   * Only a single range is supported.
-   * This field cannot be changed after creation.
+   * Required. All services in the cluster are assigned an IPv4 address from
+   * these ranges. Only a single range is supported. This field cannot be
+   * changed after creation.
    * 
* * @@ -168,9 +168,9 @@ public interface AwsClusterNetworkingOrBuilder * * *
-   * Required. All services in the cluster are assigned an IPv4 address from these ranges.
-   * Only a single range is supported.
-   * This field cannot be changed after creation.
+   * Required. All services in the cluster are assigned an IPv4 address from
+   * these ranges. Only a single range is supported. This field cannot be
+   * changed after creation.
    * 
* * diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterOrBuilder.java index e1b42c42e6d9..54bc9f249618 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterOrBuilder.java @@ -608,11 +608,11 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Optional. Fleet configuration.
+   * Required. Fleet configuration.
    * 
* * - * .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the fleet field is set. @@ -622,11 +622,11 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Optional. Fleet configuration.
+   * Required. Fleet configuration.
    * 
* * - * .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = REQUIRED]; * * * @return The fleet. @@ -636,11 +636,11 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Optional. Fleet configuration.
+   * Required. Fleet configuration.
    * 
* * - * .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkemulticloud.v1.Fleet fleet = 18 [(.google.api.field_behavior) = REQUIRED]; * */ com.google.cloud.gkemulticloud.v1.FleetOrBuilder getFleetOrBuilder(); @@ -685,4 +685,107 @@ java.lang.String getAnnotationsOrDefault( *
*/ com.google.cloud.gkemulticloud.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); + + /** + * + * + *
+   * Output only. A set of errors found in the cluster.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getErrorsList(); + /** + * + * + *
+   * Output only. A set of errors found in the cluster.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkemulticloud.v1.AwsClusterError getErrors(int index); + /** + * + * + *
+   * Output only. A set of errors found in the cluster.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getErrorsCount(); + /** + * + * + *
+   * Output only. A set of errors found in the cluster.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getErrorsOrBuilderList(); + /** + * + * + *
+   * Output only. A set of errors found in the cluster.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsClusterError errors = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkemulticloud.v1.AwsClusterErrorOrBuilder getErrorsOrBuilder(int index); + + /** + * + * + *
+   * Optional. Monitoring configuration for this cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the monitoringConfig field is set. + */ + boolean hasMonitoringConfig(); + /** + * + * + *
+   * Optional. Monitoring configuration for this cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The monitoringConfig. + */ + com.google.cloud.gkemulticloud.v1.MonitoringConfig getMonitoringConfig(); + /** + * + * + *
+   * Optional. Monitoring configuration for this cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkemulticloud.v1.MonitoringConfigOrBuilder getMonitoringConfigOrBuilder(); } diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsControlPlane.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsControlPlane.java index 81db7593f3aa..b07f63f4a578 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsControlPlane.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsControlPlane.java @@ -395,8 +395,8 @@ public com.google.protobuf.ByteString getSecurityGroupIdsBytes(int index) { * * *
-   * Required. The name or ARN of the AWS IAM instance profile to assign to each control
-   * plane replica.
+   * Required. The name or ARN of the AWS IAM instance profile to assign to each
+   * control plane replica.
    * 
* * string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED]; @@ -419,8 +419,8 @@ public java.lang.String getIamInstanceProfile() { * * *
-   * Required. The name or ARN of the AWS IAM instance profile to assign to each control
-   * plane replica.
+   * Required. The name or ARN of the AWS IAM instance profile to assign to each
+   * control plane replica.
    * 
* * string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED]; @@ -659,8 +659,8 @@ public int getTagsCount() { * * *
-   * Optional. A set of AWS resource tags to propagate to all underlying managed AWS
-   * resources.
+   * Optional. A set of AWS resource tags to propagate to all underlying managed
+   * AWS resources.
    * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
    * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
    * 255 Unicode characters.
@@ -685,8 +685,8 @@ public java.util.Map getTags() {
    *
    *
    * 
-   * Optional. A set of AWS resource tags to propagate to all underlying managed AWS
-   * resources.
+   * Optional. A set of AWS resource tags to propagate to all underlying managed
+   * AWS resources.
    * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
    * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
    * 255 Unicode characters.
@@ -702,8 +702,8 @@ public java.util.Map getTagsMap() {
    *
    *
    * 
-   * Optional. A set of AWS resource tags to propagate to all underlying managed AWS
-   * resources.
+   * Optional. A set of AWS resource tags to propagate to all underlying managed
+   * AWS resources.
    * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
    * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
    * 255 Unicode characters.
@@ -723,8 +723,8 @@ public java.lang.String getTagsOrDefault(java.lang.String key, java.lang.String
    *
    *
    * 
-   * Optional. A set of AWS resource tags to propagate to all underlying managed AWS
-   * resources.
+   * Optional. A set of AWS resource tags to propagate to all underlying managed
+   * AWS resources.
    * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
    * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
    * 255 Unicode characters.
@@ -2597,8 +2597,8 @@ public Builder addSecurityGroupIdsBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Required. The name or ARN of the AWS IAM instance profile to assign to each control
-     * plane replica.
+     * Required. The name or ARN of the AWS IAM instance profile to assign to each
+     * control plane replica.
      * 
* * string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED]; @@ -2620,8 +2620,8 @@ public java.lang.String getIamInstanceProfile() { * * *
-     * Required. The name or ARN of the AWS IAM instance profile to assign to each control
-     * plane replica.
+     * Required. The name or ARN of the AWS IAM instance profile to assign to each
+     * control plane replica.
      * 
* * string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED]; @@ -2643,8 +2643,8 @@ public com.google.protobuf.ByteString getIamInstanceProfileBytes() { * * *
-     * Required. The name or ARN of the AWS IAM instance profile to assign to each control
-     * plane replica.
+     * Required. The name or ARN of the AWS IAM instance profile to assign to each
+     * control plane replica.
      * 
* * string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED]; @@ -2665,8 +2665,8 @@ public Builder setIamInstanceProfile(java.lang.String value) { * * *
-     * Required. The name or ARN of the AWS IAM instance profile to assign to each control
-     * plane replica.
+     * Required. The name or ARN of the AWS IAM instance profile to assign to each
+     * control plane replica.
      * 
* * string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED]; @@ -2683,8 +2683,8 @@ public Builder clearIamInstanceProfile() { * * *
-     * Required. The name or ARN of the AWS IAM instance profile to assign to each control
-     * plane replica.
+     * Required. The name or ARN of the AWS IAM instance profile to assign to each
+     * control plane replica.
      * 
* * string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED]; @@ -3430,8 +3430,8 @@ public int getTagsCount() { * * *
-     * Optional. A set of AWS resource tags to propagate to all underlying managed AWS
-     * resources.
+     * Optional. A set of AWS resource tags to propagate to all underlying managed
+     * AWS resources.
      * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
      * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
      * 255 Unicode characters.
@@ -3456,8 +3456,8 @@ public java.util.Map getTags() {
      *
      *
      * 
-     * Optional. A set of AWS resource tags to propagate to all underlying managed AWS
-     * resources.
+     * Optional. A set of AWS resource tags to propagate to all underlying managed
+     * AWS resources.
      * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
      * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
      * 255 Unicode characters.
@@ -3473,8 +3473,8 @@ public java.util.Map getTagsMap() {
      *
      *
      * 
-     * Optional. A set of AWS resource tags to propagate to all underlying managed AWS
-     * resources.
+     * Optional. A set of AWS resource tags to propagate to all underlying managed
+     * AWS resources.
      * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
      * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
      * 255 Unicode characters.
@@ -3494,8 +3494,8 @@ public java.lang.String getTagsOrDefault(java.lang.String key, java.lang.String
      *
      *
      * 
-     * Optional. A set of AWS resource tags to propagate to all underlying managed AWS
-     * resources.
+     * Optional. A set of AWS resource tags to propagate to all underlying managed
+     * AWS resources.
      * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
      * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
      * 255 Unicode characters.
@@ -3523,8 +3523,8 @@ public Builder clearTags() {
      *
      *
      * 
-     * Optional. A set of AWS resource tags to propagate to all underlying managed AWS
-     * resources.
+     * Optional. A set of AWS resource tags to propagate to all underlying managed
+     * AWS resources.
      * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
      * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
      * 255 Unicode characters.
@@ -3548,8 +3548,8 @@ public java.util.Map getMutableTags() {
      *
      *
      * 
-     * Optional. A set of AWS resource tags to propagate to all underlying managed AWS
-     * resources.
+     * Optional. A set of AWS resource tags to propagate to all underlying managed
+     * AWS resources.
      * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
      * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
      * 255 Unicode characters.
@@ -3572,8 +3572,8 @@ public Builder putTags(java.lang.String key, java.lang.String value) {
      *
      *
      * 
-     * Optional. A set of AWS resource tags to propagate to all underlying managed AWS
-     * resources.
+     * Optional. A set of AWS resource tags to propagate to all underlying managed
+     * AWS resources.
      * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
      * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
      * 255 Unicode characters.
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsControlPlaneOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsControlPlaneOrBuilder.java
index 491a896e9382..ebdadac39274 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsControlPlaneOrBuilder.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsControlPlaneOrBuilder.java
@@ -253,8 +253,8 @@ public interface AwsControlPlaneOrBuilder
    *
    *
    * 
-   * Required. The name or ARN of the AWS IAM instance profile to assign to each control
-   * plane replica.
+   * Required. The name or ARN of the AWS IAM instance profile to assign to each
+   * control plane replica.
    * 
* * string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED]; @@ -266,8 +266,8 @@ public interface AwsControlPlaneOrBuilder * * *
-   * Required. The name or ARN of the AWS IAM instance profile to assign to each control
-   * plane replica.
+   * Required. The name or ARN of the AWS IAM instance profile to assign to each
+   * control plane replica.
    * 
* * string iam_instance_profile = 7 [(.google.api.field_behavior) = REQUIRED]; @@ -430,8 +430,8 @@ public interface AwsControlPlaneOrBuilder * * *
-   * Optional. A set of AWS resource tags to propagate to all underlying managed AWS
-   * resources.
+   * Optional. A set of AWS resource tags to propagate to all underlying managed
+   * AWS resources.
    * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
    * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
    * 255 Unicode characters.
@@ -444,8 +444,8 @@ public interface AwsControlPlaneOrBuilder
    *
    *
    * 
-   * Optional. A set of AWS resource tags to propagate to all underlying managed AWS
-   * resources.
+   * Optional. A set of AWS resource tags to propagate to all underlying managed
+   * AWS resources.
    * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
    * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
    * 255 Unicode characters.
@@ -461,8 +461,8 @@ public interface AwsControlPlaneOrBuilder
    *
    *
    * 
-   * Optional. A set of AWS resource tags to propagate to all underlying managed AWS
-   * resources.
+   * Optional. A set of AWS resource tags to propagate to all underlying managed
+   * AWS resources.
    * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
    * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
    * 255 Unicode characters.
@@ -475,8 +475,8 @@ public interface AwsControlPlaneOrBuilder
    *
    *
    * 
-   * Optional. A set of AWS resource tags to propagate to all underlying managed AWS
-   * resources.
+   * Optional. A set of AWS resource tags to propagate to all underlying managed
+   * AWS resources.
    * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
    * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
    * 255 Unicode characters.
@@ -494,8 +494,8 @@ java.lang.String getTagsOrDefault(
    *
    *
    * 
-   * Optional. A set of AWS resource tags to propagate to all underlying managed AWS
-   * resources.
+   * Optional. A set of AWS resource tags to propagate to all underlying managed
+   * AWS resources.
    * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
    * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
    * 255 Unicode characters.
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodeConfig.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodeConfig.java
index 0b7dbf7ce962..27f2a8d4cd7a 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodeConfig.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodeConfig.java
@@ -412,10 +412,10 @@ public int getTagsCount() {
    *
    *
    * 
-   * Optional. Key/value metadata to assign to each underlying AWS resource. Specify at
-   * most 50 pairs containing alphanumerics, spaces, and symbols (.+-=_:@/).
-   * Keys can be up to 127 Unicode characters.
-   * Values can be up to 255 Unicode characters.
+   * Optional. Key/value metadata to assign to each underlying AWS resource.
+   * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
+   * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
+   * 255 Unicode characters.
    * 
* * map<string, string> tags = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -437,10 +437,10 @@ public java.util.Map getTags() { * * *
-   * Optional. Key/value metadata to assign to each underlying AWS resource. Specify at
-   * most 50 pairs containing alphanumerics, spaces, and symbols (.+-=_:@/).
-   * Keys can be up to 127 Unicode characters.
-   * Values can be up to 255 Unicode characters.
+   * Optional. Key/value metadata to assign to each underlying AWS resource.
+   * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
+   * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
+   * 255 Unicode characters.
    * 
* * map<string, string> tags = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -453,10 +453,10 @@ public java.util.Map getTagsMap() { * * *
-   * Optional. Key/value metadata to assign to each underlying AWS resource. Specify at
-   * most 50 pairs containing alphanumerics, spaces, and symbols (.+-=_:@/).
-   * Keys can be up to 127 Unicode characters.
-   * Values can be up to 255 Unicode characters.
+   * Optional. Key/value metadata to assign to each underlying AWS resource.
+   * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
+   * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
+   * 255 Unicode characters.
    * 
* * map<string, string> tags = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -473,10 +473,10 @@ public java.lang.String getTagsOrDefault(java.lang.String key, java.lang.String * * *
-   * Optional. Key/value metadata to assign to each underlying AWS resource. Specify at
-   * most 50 pairs containing alphanumerics, spaces, and symbols (.+-=_:@/).
-   * Keys can be up to 127 Unicode characters.
-   * Values can be up to 255 Unicode characters.
+   * Optional. Key/value metadata to assign to each underlying AWS resource.
+   * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
+   * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
+   * 255 Unicode characters.
    * 
* * map<string, string> tags = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -499,7 +499,8 @@ public java.lang.String getTagsOrThrow(java.lang.String key) { * * *
-   * Required. The name or ARN of the AWS IAM role assigned to nodes in the pool.
+   * Required. The name or ARN of the AWS IAM role assigned to nodes in the
+   * pool.
    * 
* * string iam_instance_profile = 6 [(.google.api.field_behavior) = REQUIRED]; @@ -522,7 +523,8 @@ public java.lang.String getIamInstanceProfile() { * * *
-   * Required. The name or ARN of the AWS IAM role assigned to nodes in the pool.
+   * Required. The name or ARN of the AWS IAM role assigned to nodes in the
+   * pool.
    * 
* * string iam_instance_profile = 6 [(.google.api.field_behavior) = REQUIRED]; @@ -657,9 +659,9 @@ public com.google.cloud.gkemulticloud.v1.AwsSshConfigOrBuilder getSshConfigOrBui * * *
-   * Optional. The IDs of additional security groups to add to nodes in this pool. The
-   * manager will automatically create security groups with minimum rules
-   * needed for a functioning cluster.
+   * Optional. The IDs of additional security groups to add to nodes in this
+   * pool. The manager will automatically create security groups with minimum
+   * rules needed for a functioning cluster.
    * 
* * repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -673,9 +675,9 @@ public com.google.protobuf.ProtocolStringList getSecurityGroupIdsList() { * * *
-   * Optional. The IDs of additional security groups to add to nodes in this pool. The
-   * manager will automatically create security groups with minimum rules
-   * needed for a functioning cluster.
+   * Optional. The IDs of additional security groups to add to nodes in this
+   * pool. The manager will automatically create security groups with minimum
+   * rules needed for a functioning cluster.
    * 
* * repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -689,9 +691,9 @@ public int getSecurityGroupIdsCount() { * * *
-   * Optional. The IDs of additional security groups to add to nodes in this pool. The
-   * manager will automatically create security groups with minimum rules
-   * needed for a functioning cluster.
+   * Optional. The IDs of additional security groups to add to nodes in this
+   * pool. The manager will automatically create security groups with minimum
+   * rules needed for a functioning cluster.
    * 
* * repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -706,9 +708,9 @@ public java.lang.String getSecurityGroupIds(int index) { * * *
-   * Optional. The IDs of additional security groups to add to nodes in this pool. The
-   * manager will automatically create security groups with minimum rules
-   * needed for a functioning cluster.
+   * Optional. The IDs of additional security groups to add to nodes in this
+   * pool. The manager will automatically create security groups with minimum
+   * rules needed for a functioning cluster.
    * 
* * repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -887,6 +889,70 @@ public com.google.cloud.gkemulticloud.v1.AwsInstancePlacement getInstancePlaceme return getInstancePlacement(); } + public static final int AUTOSCALING_METRICS_COLLECTION_FIELD_NUMBER = 15; + private com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection + autoscalingMetricsCollection_; + /** + * + * + *
+   * Optional. Configuration related to CloudWatch metrics collection on the
+   * Auto Scaling group of the node pool.
+   * When unspecified, metrics collection is disabled.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the autoscalingMetricsCollection field is set. + */ + @java.lang.Override + public boolean hasAutoscalingMetricsCollection() { + return autoscalingMetricsCollection_ != null; + } + /** + * + * + *
+   * Optional. Configuration related to CloudWatch metrics collection on the
+   * Auto Scaling group of the node pool.
+   * When unspecified, metrics collection is disabled.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoscalingMetricsCollection. + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection + getAutoscalingMetricsCollection() { + return autoscalingMetricsCollection_ == null + ? com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection + .getDefaultInstance() + : autoscalingMetricsCollection_; + } + /** + * + * + *
+   * Optional. Configuration related to CloudWatch metrics collection on the
+   * Auto Scaling group of the node pool.
+   * When unspecified, metrics collection is disabled.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollectionOrBuilder + getAutoscalingMetricsCollectionOrBuilder() { + return getAutoscalingMetricsCollection(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -935,6 +1001,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (instancePlacement_ != null) { output.writeMessage(14, getInstancePlacement()); } + if (autoscalingMetricsCollection_ != null) { + output.writeMessage(15, getAutoscalingMetricsCollection()); + } getUnknownFields().writeTo(output); } @@ -999,6 +1068,11 @@ public int getSerializedSize() { if (instancePlacement_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getInstancePlacement()); } + if (autoscalingMetricsCollection_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, getAutoscalingMetricsCollection()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1042,6 +1116,11 @@ public boolean equals(final java.lang.Object obj) { if (hasInstancePlacement()) { if (!getInstancePlacement().equals(other.getInstancePlacement())) return false; } + if (hasAutoscalingMetricsCollection() != other.hasAutoscalingMetricsCollection()) return false; + if (hasAutoscalingMetricsCollection()) { + if (!getAutoscalingMetricsCollection().equals(other.getAutoscalingMetricsCollection())) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1095,6 +1174,10 @@ public int hashCode() { hash = (37 * hash) + INSTANCE_PLACEMENT_FIELD_NUMBER; hash = (53 * hash) + getInstancePlacement().hashCode(); } + if (hasAutoscalingMetricsCollection()) { + hash = (37 * hash) + AUTOSCALING_METRICS_COLLECTION_FIELD_NUMBER; + hash = (53 * hash) + getAutoscalingMetricsCollection().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1304,6 +1387,12 @@ public Builder clear() { instancePlacement_ = null; instancePlacementBuilder_ = null; } + if (autoscalingMetricsCollectionBuilder_ == null) { + autoscalingMetricsCollection_ = null; + } else { + autoscalingMetricsCollection_ = null; + autoscalingMetricsCollectionBuilder_ = null; + } return this; } @@ -1378,6 +1467,11 @@ public com.google.cloud.gkemulticloud.v1.AwsNodeConfig buildPartial() { } else { result.instancePlacement_ = instancePlacementBuilder_.build(); } + if (autoscalingMetricsCollectionBuilder_ == null) { + result.autoscalingMetricsCollection_ = autoscalingMetricsCollection_; + } else { + result.autoscalingMetricsCollection_ = autoscalingMetricsCollectionBuilder_.build(); + } onBuilt(); return result; } @@ -1494,6 +1588,9 @@ public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.AwsNodeConfig other) if (other.hasInstancePlacement()) { mergeInstancePlacement(other.getInstancePlacement()); } + if (other.hasAutoscalingMetricsCollection()) { + mergeAutoscalingMetricsCollection(other.getAutoscalingMetricsCollection()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1609,6 +1706,13 @@ public Builder mergeFrom( break; } // case 114 + case 122: + { + input.readMessage( + getAutoscalingMetricsCollectionFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 122 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2556,10 +2660,10 @@ public int getTagsCount() { * * *
-     * Optional. Key/value metadata to assign to each underlying AWS resource. Specify at
-     * most 50 pairs containing alphanumerics, spaces, and symbols (.+-=_:@/).
-     * Keys can be up to 127 Unicode characters.
-     * Values can be up to 255 Unicode characters.
+     * Optional. Key/value metadata to assign to each underlying AWS resource.
+     * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
+     * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
+     * 255 Unicode characters.
      * 
* * map<string, string> tags = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2581,10 +2685,10 @@ public java.util.Map getTags() { * * *
-     * Optional. Key/value metadata to assign to each underlying AWS resource. Specify at
-     * most 50 pairs containing alphanumerics, spaces, and symbols (.+-=_:@/).
-     * Keys can be up to 127 Unicode characters.
-     * Values can be up to 255 Unicode characters.
+     * Optional. Key/value metadata to assign to each underlying AWS resource.
+     * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
+     * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
+     * 255 Unicode characters.
      * 
* * map<string, string> tags = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2597,10 +2701,10 @@ public java.util.Map getTagsMap() { * * *
-     * Optional. Key/value metadata to assign to each underlying AWS resource. Specify at
-     * most 50 pairs containing alphanumerics, spaces, and symbols (.+-=_:@/).
-     * Keys can be up to 127 Unicode characters.
-     * Values can be up to 255 Unicode characters.
+     * Optional. Key/value metadata to assign to each underlying AWS resource.
+     * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
+     * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
+     * 255 Unicode characters.
      * 
* * map<string, string> tags = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2617,10 +2721,10 @@ public java.lang.String getTagsOrDefault(java.lang.String key, java.lang.String * * *
-     * Optional. Key/value metadata to assign to each underlying AWS resource. Specify at
-     * most 50 pairs containing alphanumerics, spaces, and symbols (.+-=_:@/).
-     * Keys can be up to 127 Unicode characters.
-     * Values can be up to 255 Unicode characters.
+     * Optional. Key/value metadata to assign to each underlying AWS resource.
+     * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
+     * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
+     * 255 Unicode characters.
      * 
* * map<string, string> tags = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2645,10 +2749,10 @@ public Builder clearTags() { * * *
-     * Optional. Key/value metadata to assign to each underlying AWS resource. Specify at
-     * most 50 pairs containing alphanumerics, spaces, and symbols (.+-=_:@/).
-     * Keys can be up to 127 Unicode characters.
-     * Values can be up to 255 Unicode characters.
+     * Optional. Key/value metadata to assign to each underlying AWS resource.
+     * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
+     * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
+     * 255 Unicode characters.
      * 
* * map<string, string> tags = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2669,10 +2773,10 @@ public java.util.Map getMutableTags() { * * *
-     * Optional. Key/value metadata to assign to each underlying AWS resource. Specify at
-     * most 50 pairs containing alphanumerics, spaces, and symbols (.+-=_:@/).
-     * Keys can be up to 127 Unicode characters.
-     * Values can be up to 255 Unicode characters.
+     * Optional. Key/value metadata to assign to each underlying AWS resource.
+     * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
+     * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
+     * 255 Unicode characters.
      * 
* * map<string, string> tags = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2692,10 +2796,10 @@ public Builder putTags(java.lang.String key, java.lang.String value) { * * *
-     * Optional. Key/value metadata to assign to each underlying AWS resource. Specify at
-     * most 50 pairs containing alphanumerics, spaces, and symbols (.+-=_:@/).
-     * Keys can be up to 127 Unicode characters.
-     * Values can be up to 255 Unicode characters.
+     * Optional. Key/value metadata to assign to each underlying AWS resource.
+     * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
+     * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
+     * 255 Unicode characters.
      * 
* * map<string, string> tags = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2710,7 +2814,8 @@ public Builder putAllTags(java.util.Map valu * * *
-     * Required. The name or ARN of the AWS IAM role assigned to nodes in the pool.
+     * Required. The name or ARN of the AWS IAM role assigned to nodes in the
+     * pool.
      * 
* * string iam_instance_profile = 6 [(.google.api.field_behavior) = REQUIRED]; @@ -2732,7 +2837,8 @@ public java.lang.String getIamInstanceProfile() { * * *
-     * Required. The name or ARN of the AWS IAM role assigned to nodes in the pool.
+     * Required. The name or ARN of the AWS IAM role assigned to nodes in the
+     * pool.
      * 
* * string iam_instance_profile = 6 [(.google.api.field_behavior) = REQUIRED]; @@ -2754,7 +2860,8 @@ public com.google.protobuf.ByteString getIamInstanceProfileBytes() { * * *
-     * Required. The name or ARN of the AWS IAM role assigned to nodes in the pool.
+     * Required. The name or ARN of the AWS IAM role assigned to nodes in the
+     * pool.
      * 
* * string iam_instance_profile = 6 [(.google.api.field_behavior) = REQUIRED]; @@ -2775,7 +2882,8 @@ public Builder setIamInstanceProfile(java.lang.String value) { * * *
-     * Required. The name or ARN of the AWS IAM role assigned to nodes in the pool.
+     * Required. The name or ARN of the AWS IAM role assigned to nodes in the
+     * pool.
      * 
* * string iam_instance_profile = 6 [(.google.api.field_behavior) = REQUIRED]; @@ -2792,7 +2900,8 @@ public Builder clearIamInstanceProfile() { * * *
-     * Required. The name or ARN of the AWS IAM role assigned to nodes in the pool.
+     * Required. The name or ARN of the AWS IAM role assigned to nodes in the
+     * pool.
      * 
* * string iam_instance_profile = 6 [(.google.api.field_behavior) = REQUIRED]; @@ -3149,9 +3258,9 @@ private void ensureSecurityGroupIdsIsMutable() { * * *
-     * Optional. The IDs of additional security groups to add to nodes in this pool. The
-     * manager will automatically create security groups with minimum rules
-     * needed for a functioning cluster.
+     * Optional. The IDs of additional security groups to add to nodes in this
+     * pool. The manager will automatically create security groups with minimum
+     * rules needed for a functioning cluster.
      * 
* * repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3166,9 +3275,9 @@ public com.google.protobuf.ProtocolStringList getSecurityGroupIdsList() { * * *
-     * Optional. The IDs of additional security groups to add to nodes in this pool. The
-     * manager will automatically create security groups with minimum rules
-     * needed for a functioning cluster.
+     * Optional. The IDs of additional security groups to add to nodes in this
+     * pool. The manager will automatically create security groups with minimum
+     * rules needed for a functioning cluster.
      * 
* * repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3183,9 +3292,9 @@ public int getSecurityGroupIdsCount() { * * *
-     * Optional. The IDs of additional security groups to add to nodes in this pool. The
-     * manager will automatically create security groups with minimum rules
-     * needed for a functioning cluster.
+     * Optional. The IDs of additional security groups to add to nodes in this
+     * pool. The manager will automatically create security groups with minimum
+     * rules needed for a functioning cluster.
      * 
* * repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3201,9 +3310,9 @@ public java.lang.String getSecurityGroupIds(int index) { * * *
-     * Optional. The IDs of additional security groups to add to nodes in this pool. The
-     * manager will automatically create security groups with minimum rules
-     * needed for a functioning cluster.
+     * Optional. The IDs of additional security groups to add to nodes in this
+     * pool. The manager will automatically create security groups with minimum
+     * rules needed for a functioning cluster.
      * 
* * repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3219,9 +3328,9 @@ public com.google.protobuf.ByteString getSecurityGroupIdsBytes(int index) { * * *
-     * Optional. The IDs of additional security groups to add to nodes in this pool. The
-     * manager will automatically create security groups with minimum rules
-     * needed for a functioning cluster.
+     * Optional. The IDs of additional security groups to add to nodes in this
+     * pool. The manager will automatically create security groups with minimum
+     * rules needed for a functioning cluster.
      * 
* * repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3244,9 +3353,9 @@ public Builder setSecurityGroupIds(int index, java.lang.String value) { * * *
-     * Optional. The IDs of additional security groups to add to nodes in this pool. The
-     * manager will automatically create security groups with minimum rules
-     * needed for a functioning cluster.
+     * Optional. The IDs of additional security groups to add to nodes in this
+     * pool. The manager will automatically create security groups with minimum
+     * rules needed for a functioning cluster.
      * 
* * repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3268,9 +3377,9 @@ public Builder addSecurityGroupIds(java.lang.String value) { * * *
-     * Optional. The IDs of additional security groups to add to nodes in this pool. The
-     * manager will automatically create security groups with minimum rules
-     * needed for a functioning cluster.
+     * Optional. The IDs of additional security groups to add to nodes in this
+     * pool. The manager will automatically create security groups with minimum
+     * rules needed for a functioning cluster.
      * 
* * repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3289,9 +3398,9 @@ public Builder addAllSecurityGroupIds(java.lang.Iterable value * * *
-     * Optional. The IDs of additional security groups to add to nodes in this pool. The
-     * manager will automatically create security groups with minimum rules
-     * needed for a functioning cluster.
+     * Optional. The IDs of additional security groups to add to nodes in this
+     * pool. The manager will automatically create security groups with minimum
+     * rules needed for a functioning cluster.
      * 
* * repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3309,9 +3418,9 @@ public Builder clearSecurityGroupIds() { * * *
-     * Optional. The IDs of additional security groups to add to nodes in this pool. The
-     * manager will automatically create security groups with minimum rules
-     * needed for a functioning cluster.
+     * Optional. The IDs of additional security groups to add to nodes in this
+     * pool. The manager will automatically create security groups with minimum
+     * rules needed for a functioning cluster.
      * 
* * repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3960,6 +4069,238 @@ public Builder clearInstancePlacement() { return instancePlacementBuilder_; } + private com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection + autoscalingMetricsCollection_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection, + com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection.Builder, + com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollectionOrBuilder> + autoscalingMetricsCollectionBuilder_; + /** + * + * + *
+     * Optional. Configuration related to CloudWatch metrics collection on the
+     * Auto Scaling group of the node pool.
+     * When unspecified, metrics collection is disabled.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the autoscalingMetricsCollection field is set. + */ + public boolean hasAutoscalingMetricsCollection() { + return autoscalingMetricsCollectionBuilder_ != null || autoscalingMetricsCollection_ != null; + } + /** + * + * + *
+     * Optional. Configuration related to CloudWatch metrics collection on the
+     * Auto Scaling group of the node pool.
+     * When unspecified, metrics collection is disabled.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoscalingMetricsCollection. + */ + public com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection + getAutoscalingMetricsCollection() { + if (autoscalingMetricsCollectionBuilder_ == null) { + return autoscalingMetricsCollection_ == null + ? com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection + .getDefaultInstance() + : autoscalingMetricsCollection_; + } else { + return autoscalingMetricsCollectionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Configuration related to CloudWatch metrics collection on the
+     * Auto Scaling group of the node pool.
+     * When unspecified, metrics collection is disabled.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAutoscalingMetricsCollection( + com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection value) { + if (autoscalingMetricsCollectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoscalingMetricsCollection_ = value; + onChanged(); + } else { + autoscalingMetricsCollectionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Configuration related to CloudWatch metrics collection on the
+     * Auto Scaling group of the node pool.
+     * When unspecified, metrics collection is disabled.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAutoscalingMetricsCollection( + com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection.Builder + builderForValue) { + if (autoscalingMetricsCollectionBuilder_ == null) { + autoscalingMetricsCollection_ = builderForValue.build(); + onChanged(); + } else { + autoscalingMetricsCollectionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. Configuration related to CloudWatch metrics collection on the
+     * Auto Scaling group of the node pool.
+     * When unspecified, metrics collection is disabled.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAutoscalingMetricsCollection( + com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection value) { + if (autoscalingMetricsCollectionBuilder_ == null) { + if (autoscalingMetricsCollection_ != null) { + autoscalingMetricsCollection_ = + com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection.newBuilder( + autoscalingMetricsCollection_) + .mergeFrom(value) + .buildPartial(); + } else { + autoscalingMetricsCollection_ = value; + } + onChanged(); + } else { + autoscalingMetricsCollectionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Configuration related to CloudWatch metrics collection on the
+     * Auto Scaling group of the node pool.
+     * When unspecified, metrics collection is disabled.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAutoscalingMetricsCollection() { + if (autoscalingMetricsCollectionBuilder_ == null) { + autoscalingMetricsCollection_ = null; + onChanged(); + } else { + autoscalingMetricsCollection_ = null; + autoscalingMetricsCollectionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. Configuration related to CloudWatch metrics collection on the
+     * Auto Scaling group of the node pool.
+     * When unspecified, metrics collection is disabled.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection.Builder + getAutoscalingMetricsCollectionBuilder() { + + onChanged(); + return getAutoscalingMetricsCollectionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Configuration related to CloudWatch metrics collection on the
+     * Auto Scaling group of the node pool.
+     * When unspecified, metrics collection is disabled.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollectionOrBuilder + getAutoscalingMetricsCollectionOrBuilder() { + if (autoscalingMetricsCollectionBuilder_ != null) { + return autoscalingMetricsCollectionBuilder_.getMessageOrBuilder(); + } else { + return autoscalingMetricsCollection_ == null + ? com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection + .getDefaultInstance() + : autoscalingMetricsCollection_; + } + } + /** + * + * + *
+     * Optional. Configuration related to CloudWatch metrics collection on the
+     * Auto Scaling group of the node pool.
+     * When unspecified, metrics collection is disabled.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection, + com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection.Builder, + com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollectionOrBuilder> + getAutoscalingMetricsCollectionFieldBuilder() { + if (autoscalingMetricsCollectionBuilder_ == null) { + autoscalingMetricsCollectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection, + com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection.Builder, + com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollectionOrBuilder>( + getAutoscalingMetricsCollection(), getParentForChildren(), isClean()); + autoscalingMetricsCollection_ = null; + } + return autoscalingMetricsCollectionBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodeConfigOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodeConfigOrBuilder.java index 44f3a20ab55a..fc66b62ba2a6 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodeConfigOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodeConfigOrBuilder.java @@ -235,10 +235,10 @@ java.lang.String getLabelsOrDefault( * * *
-   * Optional. Key/value metadata to assign to each underlying AWS resource. Specify at
-   * most 50 pairs containing alphanumerics, spaces, and symbols (.+-=_:@/).
-   * Keys can be up to 127 Unicode characters.
-   * Values can be up to 255 Unicode characters.
+   * Optional. Key/value metadata to assign to each underlying AWS resource.
+   * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
+   * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
+   * 255 Unicode characters.
    * 
* * map<string, string> tags = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -248,10 +248,10 @@ java.lang.String getLabelsOrDefault( * * *
-   * Optional. Key/value metadata to assign to each underlying AWS resource. Specify at
-   * most 50 pairs containing alphanumerics, spaces, and symbols (.+-=_:@/).
-   * Keys can be up to 127 Unicode characters.
-   * Values can be up to 255 Unicode characters.
+   * Optional. Key/value metadata to assign to each underlying AWS resource.
+   * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
+   * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
+   * 255 Unicode characters.
    * 
* * map<string, string> tags = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -264,10 +264,10 @@ java.lang.String getLabelsOrDefault( * * *
-   * Optional. Key/value metadata to assign to each underlying AWS resource. Specify at
-   * most 50 pairs containing alphanumerics, spaces, and symbols (.+-=_:@/).
-   * Keys can be up to 127 Unicode characters.
-   * Values can be up to 255 Unicode characters.
+   * Optional. Key/value metadata to assign to each underlying AWS resource.
+   * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
+   * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
+   * 255 Unicode characters.
    * 
* * map<string, string> tags = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -277,10 +277,10 @@ java.lang.String getLabelsOrDefault( * * *
-   * Optional. Key/value metadata to assign to each underlying AWS resource. Specify at
-   * most 50 pairs containing alphanumerics, spaces, and symbols (.+-=_:@/).
-   * Keys can be up to 127 Unicode characters.
-   * Values can be up to 255 Unicode characters.
+   * Optional. Key/value metadata to assign to each underlying AWS resource.
+   * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
+   * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
+   * 255 Unicode characters.
    * 
* * map<string, string> tags = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -295,10 +295,10 @@ java.lang.String getTagsOrDefault( * * *
-   * Optional. Key/value metadata to assign to each underlying AWS resource. Specify at
-   * most 50 pairs containing alphanumerics, spaces, and symbols (.+-=_:@/).
-   * Keys can be up to 127 Unicode characters.
-   * Values can be up to 255 Unicode characters.
+   * Optional. Key/value metadata to assign to each underlying AWS resource.
+   * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
+   * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
+   * 255 Unicode characters.
    * 
* * map<string, string> tags = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -309,7 +309,8 @@ java.lang.String getTagsOrDefault( * * *
-   * Required. The name or ARN of the AWS IAM role assigned to nodes in the pool.
+   * Required. The name or ARN of the AWS IAM role assigned to nodes in the
+   * pool.
    * 
* * string iam_instance_profile = 6 [(.google.api.field_behavior) = REQUIRED]; @@ -321,7 +322,8 @@ java.lang.String getTagsOrDefault( * * *
-   * Required. The name or ARN of the AWS IAM role assigned to nodes in the pool.
+   * Required. The name or ARN of the AWS IAM role assigned to nodes in the
+   * pool.
    * 
* * string iam_instance_profile = 6 [(.google.api.field_behavior) = REQUIRED]; @@ -406,9 +408,9 @@ java.lang.String getTagsOrDefault( * * *
-   * Optional. The IDs of additional security groups to add to nodes in this pool. The
-   * manager will automatically create security groups with minimum rules
-   * needed for a functioning cluster.
+   * Optional. The IDs of additional security groups to add to nodes in this
+   * pool. The manager will automatically create security groups with minimum
+   * rules needed for a functioning cluster.
    * 
* * repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -420,9 +422,9 @@ java.lang.String getTagsOrDefault( * * *
-   * Optional. The IDs of additional security groups to add to nodes in this pool. The
-   * manager will automatically create security groups with minimum rules
-   * needed for a functioning cluster.
+   * Optional. The IDs of additional security groups to add to nodes in this
+   * pool. The manager will automatically create security groups with minimum
+   * rules needed for a functioning cluster.
    * 
* * repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -434,9 +436,9 @@ java.lang.String getTagsOrDefault( * * *
-   * Optional. The IDs of additional security groups to add to nodes in this pool. The
-   * manager will automatically create security groups with minimum rules
-   * needed for a functioning cluster.
+   * Optional. The IDs of additional security groups to add to nodes in this
+   * pool. The manager will automatically create security groups with minimum
+   * rules needed for a functioning cluster.
    * 
* * repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -449,9 +451,9 @@ java.lang.String getTagsOrDefault( * * *
-   * Optional. The IDs of additional security groups to add to nodes in this pool. The
-   * manager will automatically create security groups with minimum rules
-   * needed for a functioning cluster.
+   * Optional. The IDs of additional security groups to add to nodes in this
+   * pool. The manager will automatically create security groups with minimum
+   * rules needed for a functioning cluster.
    * 
* * repeated string security_group_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -586,4 +588,53 @@ java.lang.String getTagsOrDefault( *
*/ com.google.cloud.gkemulticloud.v1.AwsInstancePlacementOrBuilder getInstancePlacementOrBuilder(); + + /** + * + * + *
+   * Optional. Configuration related to CloudWatch metrics collection on the
+   * Auto Scaling group of the node pool.
+   * When unspecified, metrics collection is disabled.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the autoscalingMetricsCollection field is set. + */ + boolean hasAutoscalingMetricsCollection(); + /** + * + * + *
+   * Optional. Configuration related to CloudWatch metrics collection on the
+   * Auto Scaling group of the node pool.
+   * When unspecified, metrics collection is disabled.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoscalingMetricsCollection. + */ + com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection + getAutoscalingMetricsCollection(); + /** + * + * + *
+   * Optional. Configuration related to CloudWatch metrics collection on the
+   * Auto Scaling group of the node pool.
+   * When unspecified, metrics collection is disabled.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollectionOrBuilder + getAutoscalingMetricsCollectionOrBuilder(); } diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePool.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePool.java index 9a999626b6b2..5f5951c7d389 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePool.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePool.java @@ -44,6 +44,7 @@ private AwsNodePool() { state_ = 0; uid_ = ""; etag_ = ""; + errors_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -397,7 +398,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Required. The Kubernetes version to run on this node pool (e.g. `1.19.10-gke.1000`).
+   * Required. The Kubernetes version to run on this node pool (e.g.
+   * `1.19.10-gke.1000`).
    * You can list all supported versions on a given Google Cloud region by
    * calling
    * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig].
@@ -423,7 +425,8 @@ public java.lang.String getVersion() {
    *
    *
    * 
-   * Required. The Kubernetes version to run on this node pool (e.g. `1.19.10-gke.1000`).
+   * Required. The Kubernetes version to run on this node pool (e.g.
+   * `1.19.10-gke.1000`).
    * You can list all supported versions on a given Google Cloud region by
    * calling
    * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig].
@@ -1057,6 +1060,85 @@ public com.google.cloud.gkemulticloud.v1.MaxPodsConstraint getMaxPodsConstraint(
     return getMaxPodsConstraint();
   }
 
+  public static final int ERRORS_FIELD_NUMBER = 29;
+  private java.util.List errors_;
+  /**
+   *
+   *
+   * 
+   * Output only. A set of errors found in the node pool.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getErrorsList() { + return errors_; + } + /** + * + * + *
+   * Output only. A set of errors found in the node pool.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getErrorsOrBuilderList() { + return errors_; + } + /** + * + * + *
+   * Output only. A set of errors found in the node pool.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getErrorsCount() { + return errors_.size(); + } + /** + * + * + *
+   * Output only. A set of errors found in the node pool.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AwsNodePoolError getErrors(int index) { + return errors_.get(index); + } + /** + * + * + *
+   * Output only. A set of errors found in the node pool.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AwsNodePoolErrorOrBuilder getErrorsOrBuilder(int index) { + return errors_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1110,6 +1192,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (config_ != null) { output.writeMessage(28, getConfig()); } + for (int i = 0; i < errors_.size(); i++) { + output.writeMessage(29, errors_.get(i)); + } getUnknownFields().writeTo(output); } @@ -1166,6 +1251,9 @@ public int getSerializedSize() { if (config_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getConfig()); } + for (int i = 0; i < errors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, errors_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1210,6 +1298,7 @@ public boolean equals(final java.lang.Object obj) { if (hasMaxPodsConstraint()) { if (!getMaxPodsConstraint().equals(other.getMaxPodsConstraint())) return false; } + if (!getErrorsList().equals(other.getErrorsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1259,6 +1348,10 @@ public int hashCode() { hash = (37 * hash) + MAX_PODS_CONSTRAINT_FIELD_NUMBER; hash = (53 * hash) + getMaxPodsConstraint().hashCode(); } + if (getErrorsCount() > 0) { + hash = (37 * hash) + ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getErrorsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1462,6 +1555,13 @@ public Builder clear() { maxPodsConstraint_ = null; maxPodsConstraintBuilder_ = null; } + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + } else { + errors_ = null; + errorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -1524,6 +1624,15 @@ public com.google.cloud.gkemulticloud.v1.AwsNodePool buildPartial() { } else { result.maxPodsConstraint_ = maxPodsConstraintBuilder_.build(); } + if (errorsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + errors_ = java.util.Collections.unmodifiableList(errors_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.errors_ = errors_; + } else { + result.errors_ = errorsBuilder_.build(); + } onBuilt(); return result; } @@ -1615,6 +1724,33 @@ public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.AwsNodePool other) { if (other.hasMaxPodsConstraint()) { mergeMaxPodsConstraint(other.getMaxPodsConstraint()); } + if (errorsBuilder_ == null) { + if (!other.errors_.isEmpty()) { + if (errors_.isEmpty()) { + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureErrorsIsMutable(); + errors_.addAll(other.errors_); + } + onChanged(); + } + } else { + if (!other.errors_.isEmpty()) { + if (errorsBuilder_.isEmpty()) { + errorsBuilder_.dispose(); + errorsBuilder_ = null; + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000002); + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorsFieldBuilder() + : null; + } else { + errorsBuilder_.addAllMessages(other.errors_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1725,6 +1861,20 @@ public Builder mergeFrom( break; } // case 226 + case 234: + { + com.google.cloud.gkemulticloud.v1.AwsNodePoolError m = + input.readMessage( + com.google.cloud.gkemulticloud.v1.AwsNodePoolError.parser(), + extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.addMessage(m); + } + break; + } // case 234 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1875,7 +2025,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The Kubernetes version to run on this node pool (e.g. `1.19.10-gke.1000`).
+     * Required. The Kubernetes version to run on this node pool (e.g.
+     * `1.19.10-gke.1000`).
      * You can list all supported versions on a given Google Cloud region by
      * calling
      * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig].
@@ -1900,7 +2051,8 @@ public java.lang.String getVersion() {
      *
      *
      * 
-     * Required. The Kubernetes version to run on this node pool (e.g. `1.19.10-gke.1000`).
+     * Required. The Kubernetes version to run on this node pool (e.g.
+     * `1.19.10-gke.1000`).
      * You can list all supported versions on a given Google Cloud region by
      * calling
      * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig].
@@ -1925,7 +2077,8 @@ public com.google.protobuf.ByteString getVersionBytes() {
      *
      *
      * 
-     * Required. The Kubernetes version to run on this node pool (e.g. `1.19.10-gke.1000`).
+     * Required. The Kubernetes version to run on this node pool (e.g.
+     * `1.19.10-gke.1000`).
      * You can list all supported versions on a given Google Cloud region by
      * calling
      * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig].
@@ -1949,7 +2102,8 @@ public Builder setVersion(java.lang.String value) {
      *
      *
      * 
-     * Required. The Kubernetes version to run on this node pool (e.g. `1.19.10-gke.1000`).
+     * Required. The Kubernetes version to run on this node pool (e.g.
+     * `1.19.10-gke.1000`).
      * You can list all supported versions on a given Google Cloud region by
      * calling
      * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig].
@@ -1969,7 +2123,8 @@ public Builder clearVersion() {
      *
      *
      * 
-     * Required. The Kubernetes version to run on this node pool (e.g. `1.19.10-gke.1000`).
+     * Required. The Kubernetes version to run on this node pool (e.g.
+     * `1.19.10-gke.1000`).
      * You can list all supported versions on a given Google Cloud region by
      * calling
      * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig].
@@ -3728,6 +3883,395 @@ public Builder clearMaxPodsConstraint() {
       return maxPodsConstraintBuilder_;
     }
 
+    private java.util.List errors_ =
+        java.util.Collections.emptyList();
+
+    private void ensureErrorsIsMutable() {
+      if (!((bitField0_ & 0x00000002) != 0)) {
+        errors_ =
+            new java.util.ArrayList(errors_);
+        bitField0_ |= 0x00000002;
+      }
+    }
+
+    private com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.gkemulticloud.v1.AwsNodePoolError,
+            com.google.cloud.gkemulticloud.v1.AwsNodePoolError.Builder,
+            com.google.cloud.gkemulticloud.v1.AwsNodePoolErrorOrBuilder>
+        errorsBuilder_;
+
+    /**
+     *
+     *
+     * 
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getErrorsList() { + if (errorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(errors_); + } else { + return errorsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getErrorsCount() { + if (errorsBuilder_ == null) { + return errors_.size(); + } else { + return errorsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkemulticloud.v1.AwsNodePoolError getErrors(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setErrors(int index, com.google.cloud.gkemulticloud.v1.AwsNodePoolError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.set(index, value); + onChanged(); + } else { + errorsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setErrors( + int index, com.google.cloud.gkemulticloud.v1.AwsNodePoolError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.set(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors(com.google.cloud.gkemulticloud.v1.AwsNodePoolError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(value); + onChanged(); + } else { + errorsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors(int index, com.google.cloud.gkemulticloud.v1.AwsNodePoolError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(index, value); + onChanged(); + } else { + errorsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors( + com.google.cloud.gkemulticloud.v1.AwsNodePoolError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors( + int index, com.google.cloud.gkemulticloud.v1.AwsNodePoolError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllErrors( + java.lang.Iterable values) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); + onChanged(); + } else { + errorsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearErrors() { + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + errorsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeErrors(int index) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.remove(index); + onChanged(); + } else { + errorsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkemulticloud.v1.AwsNodePoolError.Builder getErrorsBuilder(int index) { + return getErrorsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkemulticloud.v1.AwsNodePoolErrorOrBuilder getErrorsOrBuilder( + int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getErrorsOrBuilderList() { + if (errorsBuilder_ != null) { + return errorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errors_); + } + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkemulticloud.v1.AwsNodePoolError.Builder addErrorsBuilder() { + return getErrorsFieldBuilder() + .addBuilder(com.google.cloud.gkemulticloud.v1.AwsNodePoolError.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkemulticloud.v1.AwsNodePoolError.Builder addErrorsBuilder(int index) { + return getErrorsFieldBuilder() + .addBuilder( + index, com.google.cloud.gkemulticloud.v1.AwsNodePoolError.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getErrorsBuilderList() { + return getErrorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AwsNodePoolError, + com.google.cloud.gkemulticloud.v1.AwsNodePoolError.Builder, + com.google.cloud.gkemulticloud.v1.AwsNodePoolErrorOrBuilder> + getErrorsFieldBuilder() { + if (errorsBuilder_ == null) { + errorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AwsNodePoolError, + com.google.cloud.gkemulticloud.v1.AwsNodePoolError.Builder, + com.google.cloud.gkemulticloud.v1.AwsNodePoolErrorOrBuilder>( + errors_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + errors_ = null; + } + return errorsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolAutoscaling.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolAutoscaling.java index cc14fd829e7c..b76a24e74e2d 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolAutoscaling.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolAutoscaling.java @@ -72,8 +72,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Minimum number of nodes in the node pool. Must be greater than or equal to
-   * 1 and less than or equal to max_node_count.
+   * Required. Minimum number of nodes in the node pool. Must be greater than or
+   * equal to 1 and less than or equal to max_node_count.
    * 
* * int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -91,8 +91,8 @@ public int getMinNodeCount() { * * *
-   * Required. Maximum number of nodes in the node pool. Must be greater than or equal to
-   * min_node_count and less than or equal to 50.
+   * Required. Maximum number of nodes in the node pool. Must be greater than or
+   * equal to min_node_count and less than or equal to 50.
    * 
* * int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -461,8 +461,8 @@ public Builder mergeFrom( * * *
-     * Required. Minimum number of nodes in the node pool. Must be greater than or equal to
-     * 1 and less than or equal to max_node_count.
+     * Required. Minimum number of nodes in the node pool. Must be greater than or
+     * equal to 1 and less than or equal to max_node_count.
      * 
* * int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -477,8 +477,8 @@ public int getMinNodeCount() { * * *
-     * Required. Minimum number of nodes in the node pool. Must be greater than or equal to
-     * 1 and less than or equal to max_node_count.
+     * Required. Minimum number of nodes in the node pool. Must be greater than or
+     * equal to 1 and less than or equal to max_node_count.
      * 
* * int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -496,8 +496,8 @@ public Builder setMinNodeCount(int value) { * * *
-     * Required. Minimum number of nodes in the node pool. Must be greater than or equal to
-     * 1 and less than or equal to max_node_count.
+     * Required. Minimum number of nodes in the node pool. Must be greater than or
+     * equal to 1 and less than or equal to max_node_count.
      * 
* * int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -516,8 +516,8 @@ public Builder clearMinNodeCount() { * * *
-     * Required. Maximum number of nodes in the node pool. Must be greater than or equal to
-     * min_node_count and less than or equal to 50.
+     * Required. Maximum number of nodes in the node pool. Must be greater than or
+     * equal to min_node_count and less than or equal to 50.
      * 
* * int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -532,8 +532,8 @@ public int getMaxNodeCount() { * * *
-     * Required. Maximum number of nodes in the node pool. Must be greater than or equal to
-     * min_node_count and less than or equal to 50.
+     * Required. Maximum number of nodes in the node pool. Must be greater than or
+     * equal to min_node_count and less than or equal to 50.
      * 
* * int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -551,8 +551,8 @@ public Builder setMaxNodeCount(int value) { * * *
-     * Required. Maximum number of nodes in the node pool. Must be greater than or equal to
-     * min_node_count and less than or equal to 50.
+     * Required. Maximum number of nodes in the node pool. Must be greater than or
+     * equal to min_node_count and less than or equal to 50.
      * 
* * int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolAutoscalingOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolAutoscalingOrBuilder.java index 32e184477bec..7d5c9babdff7 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolAutoscalingOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolAutoscalingOrBuilder.java @@ -27,8 +27,8 @@ public interface AwsNodePoolAutoscalingOrBuilder * * *
-   * Required. Minimum number of nodes in the node pool. Must be greater than or equal to
-   * 1 and less than or equal to max_node_count.
+   * Required. Minimum number of nodes in the node pool. Must be greater than or
+   * equal to 1 and less than or equal to max_node_count.
    * 
* * int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -41,8 +41,8 @@ public interface AwsNodePoolAutoscalingOrBuilder * * *
-   * Required. Maximum number of nodes in the node pool. Must be greater than or equal to
-   * min_node_count and less than or equal to 50.
+   * Required. Maximum number of nodes in the node pool. Must be greater than or
+   * equal to min_node_count and less than or equal to 50.
    * 
* * int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolError.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolError.java new file mode 100644 index 000000000000..be976a0e1877 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolError.java @@ -0,0 +1,615 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/aws_resources.proto + +package com.google.cloud.gkemulticloud.v1; + +/** + * + * + *
+ * AwsNodePoolError describes errors found on AWS node pools.
+ * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsNodePoolError} + */ +public final class AwsNodePoolError extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AwsNodePoolError) + AwsNodePoolErrorOrBuilder { + private static final long serialVersionUID = 0L; + // Use AwsNodePoolError.newBuilder() to construct. + private AwsNodePoolError(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AwsNodePoolError() { + message_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AwsNodePoolError(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AwsResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AwsNodePoolError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AwsResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AwsNodePoolError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.AwsNodePoolError.class, + com.google.cloud.gkemulticloud.v1.AwsNodePoolError.Builder.class); + } + + public static final int MESSAGE_FIELD_NUMBER = 1; + private volatile java.lang.Object message_; + /** + * + * + *
+   * Human-friendly description of the error.
+   * 
+ * + * string message = 1; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + * + * + *
+   * Human-friendly description of the error.
+   * 
+ * + * string message = 1; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkemulticloud.v1.AwsNodePoolError)) { + return super.equals(obj); + } + com.google.cloud.gkemulticloud.v1.AwsNodePoolError other = + (com.google.cloud.gkemulticloud.v1.AwsNodePoolError) obj; + + if (!getMessage().equals(other.getMessage())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkemulticloud.v1.AwsNodePoolError parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AwsNodePoolError parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AwsNodePoolError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AwsNodePoolError parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AwsNodePoolError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AwsNodePoolError parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AwsNodePoolError parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AwsNodePoolError parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AwsNodePoolError parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AwsNodePoolError parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AwsNodePoolError parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AwsNodePoolError parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkemulticloud.v1.AwsNodePoolError prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * AwsNodePoolError describes errors found on AWS node pools.
+   * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsNodePoolError} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkemulticloud.v1.AwsNodePoolError) + com.google.cloud.gkemulticloud.v1.AwsNodePoolErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AwsResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AwsNodePoolError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AwsResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AwsNodePoolError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.AwsNodePoolError.class, + com.google.cloud.gkemulticloud.v1.AwsNodePoolError.Builder.class); + } + + // Construct using com.google.cloud.gkemulticloud.v1.AwsNodePoolError.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + message_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkemulticloud.v1.AwsResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AwsNodePoolError_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AwsNodePoolError getDefaultInstanceForType() { + return com.google.cloud.gkemulticloud.v1.AwsNodePoolError.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AwsNodePoolError build() { + com.google.cloud.gkemulticloud.v1.AwsNodePoolError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AwsNodePoolError buildPartial() { + com.google.cloud.gkemulticloud.v1.AwsNodePoolError result = + new com.google.cloud.gkemulticloud.v1.AwsNodePoolError(this); + result.message_ = message_; + 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.gkemulticloud.v1.AwsNodePoolError) { + return mergeFrom((com.google.cloud.gkemulticloud.v1.AwsNodePoolError) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.AwsNodePoolError other) { + if (other == com.google.cloud.gkemulticloud.v1.AwsNodePoolError.getDefaultInstance()) + return this; + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + 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: + { + message_ = input.readStringRequireUtf8(); + + 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 java.lang.Object message_ = ""; + /** + * + * + *
+     * Human-friendly description of the error.
+     * 
+ * + * string message = 1; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Human-friendly description of the error.
+     * 
+ * + * string message = 1; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Human-friendly description of the error.
+     * 
+ * + * string message = 1; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Human-friendly description of the error.
+     * 
+ * + * string message = 1; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + * + * + *
+     * Human-friendly description of the error.
+     * 
+ * + * string message = 1; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkemulticloud.v1.AwsNodePoolError) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkemulticloud.v1.AwsNodePoolError) + private static final com.google.cloud.gkemulticloud.v1.AwsNodePoolError DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkemulticloud.v1.AwsNodePoolError(); + } + + public static com.google.cloud.gkemulticloud.v1.AwsNodePoolError getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AwsNodePoolError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AwsNodePoolError getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolErrorOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolErrorOrBuilder.java new file mode 100644 index 000000000000..ae7036b5ca83 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolErrorOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/aws_resources.proto + +package com.google.cloud.gkemulticloud.v1; + +public interface AwsNodePoolErrorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AwsNodePoolError) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Human-friendly description of the error.
+   * 
+ * + * string message = 1; + * + * @return The message. + */ + java.lang.String getMessage(); + /** + * + * + *
+   * Human-friendly description of the error.
+   * 
+ * + * string message = 1; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolOrBuilder.java index 62443dc033e3..0534f5c46620 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolOrBuilder.java @@ -60,7 +60,8 @@ public interface AwsNodePoolOrBuilder * * *
-   * Required. The Kubernetes version to run on this node pool (e.g. `1.19.10-gke.1000`).
+   * Required. The Kubernetes version to run on this node pool (e.g.
+   * `1.19.10-gke.1000`).
    * You can list all supported versions on a given Google Cloud region by
    * calling
    * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig].
@@ -75,7 +76,8 @@ public interface AwsNodePoolOrBuilder
    *
    *
    * 
-   * Required. The Kubernetes version to run on this node pool (e.g. `1.19.10-gke.1000`).
+   * Required. The Kubernetes version to run on this node pool (e.g.
+   * `1.19.10-gke.1000`).
    * You can list all supported versions on a given Google Cloud region by
    * calling
    * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig].
@@ -511,4 +513,66 @@ java.lang.String getAnnotationsOrDefault(
    * 
    */
   com.google.cloud.gkemulticloud.v1.MaxPodsConstraintOrBuilder getMaxPodsConstraintOrBuilder();
+
+  /**
+   *
+   *
+   * 
+   * Output only. A set of errors found in the node pool.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getErrorsList(); + /** + * + * + *
+   * Output only. A set of errors found in the node pool.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkemulticloud.v1.AwsNodePoolError getErrors(int index); + /** + * + * + *
+   * Output only. A set of errors found in the node pool.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getErrorsCount(); + /** + * + * + *
+   * Output only. A set of errors found in the node pool.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getErrorsOrBuilderList(); + /** + * + * + *
+   * Output only. A set of errors found in the node pool.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AwsNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkemulticloud.v1.AwsNodePoolErrorOrBuilder getErrorsOrBuilder(int index); } diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsProxyConfig.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsProxyConfig.java index a5736385d1a9..2efac86b4b10 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsProxyConfig.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsProxyConfig.java @@ -76,6 +76,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy
    * configuration.
+   * The secret must be a JSON encoded proxy configuration
+   * as described in
+   * https://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/use-a-proxy#create_a_proxy_configuration_file
    * 
* * string secret_arn = 1; @@ -100,6 +103,9 @@ public java.lang.String getSecretArn() { *
    * The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy
    * configuration.
+   * The secret must be a JSON encoded proxy configuration
+   * as described in
+   * https://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/use-a-proxy#create_a_proxy_configuration_file
    * 
* * string secret_arn = 1; @@ -529,6 +535,9 @@ public Builder mergeFrom( *
      * The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy
      * configuration.
+     * The secret must be a JSON encoded proxy configuration
+     * as described in
+     * https://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/use-a-proxy#create_a_proxy_configuration_file
      * 
* * string secret_arn = 1; @@ -552,6 +561,9 @@ public java.lang.String getSecretArn() { *
      * The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy
      * configuration.
+     * The secret must be a JSON encoded proxy configuration
+     * as described in
+     * https://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/use-a-proxy#create_a_proxy_configuration_file
      * 
* * string secret_arn = 1; @@ -575,6 +587,9 @@ public com.google.protobuf.ByteString getSecretArnBytes() { *
      * The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy
      * configuration.
+     * The secret must be a JSON encoded proxy configuration
+     * as described in
+     * https://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/use-a-proxy#create_a_proxy_configuration_file
      * 
* * string secret_arn = 1; @@ -597,6 +612,9 @@ public Builder setSecretArn(java.lang.String value) { *
      * The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy
      * configuration.
+     * The secret must be a JSON encoded proxy configuration
+     * as described in
+     * https://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/use-a-proxy#create_a_proxy_configuration_file
      * 
* * string secret_arn = 1; @@ -615,6 +633,9 @@ public Builder clearSecretArn() { *
      * The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy
      * configuration.
+     * The secret must be a JSON encoded proxy configuration
+     * as described in
+     * https://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/use-a-proxy#create_a_proxy_configuration_file
      * 
* * string secret_arn = 1; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsProxyConfigOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsProxyConfigOrBuilder.java index 30d0d0498d54..31dfab7679cd 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsProxyConfigOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsProxyConfigOrBuilder.java @@ -29,6 +29,9 @@ public interface AwsProxyConfigOrBuilder *
    * The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy
    * configuration.
+   * The secret must be a JSON encoded proxy configuration
+   * as described in
+   * https://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/use-a-proxy#create_a_proxy_configuration_file
    * 
* * string secret_arn = 1; @@ -42,6 +45,9 @@ public interface AwsProxyConfigOrBuilder *
    * The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy
    * configuration.
+   * The secret must be a JSON encoded proxy configuration
+   * as described in
+   * https://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/use-a-proxy#create_a_proxy_configuration_file
    * 
* * string secret_arn = 1; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsResourcesProto.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsResourcesProto.java index 041514257fe4..c7f03d070e9b 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsResourcesProto.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsResourcesProto.java @@ -115,6 +115,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_gkemulticloud_v1_AwsInstancePlacement_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_gkemulticloud_v1_AwsInstancePlacement_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkemulticloud_v1_AwsAutoscalingGroupMetricsCollection_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkemulticloud_v1_AwsAutoscalingGroupMetricsCollection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkemulticloud_v1_AwsClusterError_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkemulticloud_v1_AwsClusterError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkemulticloud_v1_AwsNodePoolError_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkemulticloud_v1_AwsNodePoolError_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -129,7 +141,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "v1\032\037google/api/field_behavior.proto\032\031goo" + "gle/api/resource.proto\0324google/cloud/gke" + "multicloud/v1/common_resources.proto\032\037go" - + "ogle/protobuf/timestamp.proto\"\260\t\n\nAwsClu" + + "ogle/protobuf/timestamp.proto\"\306\n\n\nAwsClu" + "ster\022\014\n\004name\030\001 \001(\t\022\030\n\013description\030\002 \001(\tB" + "\003\340A\001\022L\n\nnetworking\030\003 \001(\01323.google.cloud." + "gkemulticloud.v1.AwsClusterNetworkingB\003\340" @@ -150,124 +162,136 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".google.cloud.gkemulticloud.v1.WorkloadI" + "dentityConfigB\003\340A\003\022#\n\026cluster_ca_certifi" + "cate\030\021 \001(\tB\003\340A\003\0228\n\005fleet\030\022 \001(\0132$.google." - + "cloud.gkemulticloud.v1.FleetB\003\340A\001\022I\n\016log" + + "cloud.gkemulticloud.v1.FleetB\003\340A\002\022I\n\016log" + "ging_config\030\023 \001(\0132,.google.cloud.gkemult" - + "icloud.v1.LoggingConfigB\003\340A\001\0322\n\020Annotati" - + "onsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + "\"u\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014PROV" - + "ISIONING\020\001\022\013\n\007RUNNING\020\002\022\017\n\013RECONCILING\020\003" - + "\022\014\n\010STOPPING\020\004\022\t\n\005ERROR\020\005\022\014\n\010DEGRADED\020\006:" - + "o\352Al\n\'gkemulticloud.googleapis.com/AwsCl" - + "uster\022Aprojects/{project}/locations/{loc" - + "ation}/awsClusters/{aws_cluster}\"\250\007\n\017Aws" - + "ControlPlane\022\024\n\007version\030\001 \001(\tB\003\340A\002\022\032\n\rin" - + "stance_type\030\002 \001(\tB\003\340A\001\022D\n\nssh_config\030\016 \001" - + "(\0132+.google.cloud.gkemulticloud.v1.AwsSs" - + "hConfigB\003\340A\001\022\027\n\nsubnet_ids\030\004 \003(\tB\003\340A\002\022\037\n" - + "\022security_group_ids\030\005 \003(\tB\003\340A\001\022!\n\024iam_in" - + "stance_profile\030\007 \001(\tB\003\340A\002\022J\n\013root_volume" - + "\030\010 \001(\01320.google.cloud.gkemulticloud.v1.A" - + "wsVolumeTemplateB\003\340A\001\022J\n\013main_volume\030\t \001" - + "(\01320.google.cloud.gkemulticloud.v1.AwsVo" - + "lumeTemplateB\003\340A\001\022V\n\023database_encryption" - + "\030\n \001(\01324.google.cloud.gkemulticloud.v1.A" - + "wsDatabaseEncryptionB\003\340A\002\022K\n\004tags\030\013 \003(\0132" - + "8.google.cloud.gkemulticloud.v1.AwsContr" - + "olPlane.TagsEntryB\003\340A\001\022b\n\033aws_services_a" - + "uthentication\030\014 \001(\01328.google.cloud.gkemu" - + "lticloud.v1.AwsServicesAuthenticationB\003\340" - + "A\002\022H\n\014proxy_config\030\020 \001(\0132-.google.cloud." - + "gkemulticloud.v1.AwsProxyConfigB\003\340A\001\022R\n\021" - + "config_encryption\030\021 \001(\01322.google.cloud.g" - + "kemulticloud.v1.AwsConfigEncryptionB\003\340A\002" - + "\022T\n\022instance_placement\030\022 \001(\01323.google.cl" - + "oud.gkemulticloud.v1.AwsInstancePlacemen" - + "tB\003\340A\001\032+\n\tTagsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - + "e\030\002 \001(\t:\0028\001\"R\n\031AwsServicesAuthentication" - + "\022\025\n\010role_arn\030\001 \001(\tB\003\340A\002\022\036\n\021role_session_" - + "name\030\002 \001(\tB\003\340A\001\"[\n\020AwsAuthorization\022G\n\013a" - + "dmin_users\030\001 \003(\0132-.google.cloud.gkemulti" - + "cloud.v1.AwsClusterUserB\003\340A\002\"\'\n\016AwsClust" - + "erUser\022\025\n\010username\030\001 \001(\tB\003\340A\002\"1\n\025AwsData" - + "baseEncryption\022\030\n\013kms_key_arn\030\001 \001(\tB\003\340A\002" - + "\"\353\001\n\021AwsVolumeTemplate\022\025\n\010size_gib\030\001 \001(\005" - + "B\003\340A\001\022U\n\013volume_type\030\002 \001(\0162;.google.clou" - + "d.gkemulticloud.v1.AwsVolumeTemplate.Vol" - + "umeTypeB\003\340A\001\022\021\n\004iops\030\003 \001(\005B\003\340A\001\022\030\n\013kms_k" - + "ey_arn\030\004 \001(\tB\003\340A\001\";\n\nVolumeType\022\033\n\027VOLUM" - + "E_TYPE_UNSPECIFIED\020\000\022\007\n\003GP2\020\001\022\007\n\003GP3\020\002\"{" - + "\n\024AwsClusterNetworking\022\023\n\006vpc_id\030\001 \001(\tB\003" - + "\340A\002\022$\n\027pod_address_cidr_blocks\030\002 \003(\tB\003\340A" - + "\002\022(\n\033service_address_cidr_blocks\030\003 \003(\tB\003" - + "\340A\002\"\260\007\n\013AwsNodePool\022\014\n\004name\030\001 \001(\t\022\024\n\007ver" - + "sion\030\003 \001(\tB\003\340A\002\022A\n\006config\030\034 \001(\0132,.google" - + ".cloud.gkemulticloud.v1.AwsNodeConfigB\003\340" - + "A\002\022O\n\013autoscaling\030\031 \001(\01325.google.cloud.g" - + "kemulticloud.v1.AwsNodePoolAutoscalingB\003" - + "\340A\002\022\026\n\tsubnet_id\030\006 \001(\tB\003\340A\002\022D\n\005state\030\020 \001" - + "(\01620.google.cloud.gkemulticloud.v1.AwsNo" - + "dePool.StateB\003\340A\003\022\020\n\003uid\030\021 \001(\tB\003\340A\003\022\030\n\013r" - + "econciling\030\022 \001(\010B\003\340A\003\0224\n\013create_time\030\023 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013u" - + "pdate_time\030\024 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\022\014\n\004etag\030\025 \001(\t\022U\n\013annotations\030\026" - + " \003(\0132;.google.cloud.gkemulticloud.v1.Aws" - + "NodePool.AnnotationsEntryB\003\340A\001\022R\n\023max_po" - + "ds_constraint\030\033 \001(\01320.google.cloud.gkemu" - + "lticloud.v1.MaxPodsConstraintB\003\340A\002\0322\n\020An" - + "notationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001\"u\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\020" - + "\n\014PROVISIONING\020\001\022\013\n\007RUNNING\020\002\022\017\n\013RECONCI" - + "LING\020\003\022\014\n\010STOPPING\020\004\022\t\n\005ERROR\020\005\022\014\n\010DEGRA" - + "DED\020\006:\216\001\352A\212\001\n(gkemulticloud.googleapis.c" - + "om/AwsNodePool\022^projects/{project}/locat" - + "ions/{location}/awsClusters/{aws_cluster" - + "}/awsNodePools/{aws_node_pool}\"\303\006\n\rAwsNo" - + "deConfig\022\032\n\rinstance_type\030\001 \001(\tB\003\340A\001\022J\n\013" - + "root_volume\030\002 \001(\01320.google.cloud.gkemult" - + "icloud.v1.AwsVolumeTemplateB\003\340A\001\022=\n\006tain" - + "ts\030\003 \003(\0132(.google.cloud.gkemulticloud.v1" - + ".NodeTaintB\003\340A\001\022M\n\006labels\030\004 \003(\01328.google" - + ".cloud.gkemulticloud.v1.AwsNodeConfig.La" - + "belsEntryB\003\340A\001\022I\n\004tags\030\005 \003(\01326.google.cl" - + "oud.gkemulticloud.v1.AwsNodeConfig.TagsE" - + "ntryB\003\340A\001\022!\n\024iam_instance_profile\030\006 \001(\tB" - + "\003\340A\002\022\027\n\nimage_type\030\013 \001(\tB\003\340A\001\022D\n\nssh_con" - + "fig\030\t \001(\0132+.google.cloud.gkemulticloud.v" - + "1.AwsSshConfigB\003\340A\001\022\037\n\022security_group_id" - + "s\030\n \003(\tB\003\340A\001\022H\n\014proxy_config\030\014 \001(\0132-.goo" - + "gle.cloud.gkemulticloud.v1.AwsProxyConfi" - + "gB\003\340A\001\022R\n\021config_encryption\030\r \001(\01322.goog" - + "le.cloud.gkemulticloud.v1.AwsConfigEncry" - + "ptionB\003\340A\002\022T\n\022instance_placement\030\016 \001(\01323" - + ".google.cloud.gkemulticloud.v1.AwsInstan" - + "cePlacementB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001" - + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032+\n\tTagsEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"R\n\026AwsNodeP" - + "oolAutoscaling\022\033\n\016min_node_count\030\001 \001(\005B\003" - + "\340A\002\022\033\n\016max_node_count\030\002 \001(\005B\003\340A\002\"\364\001\n\017Aws" - + "ServerConfig\022\014\n\004name\030\001 \001(\t\022H\n\016valid_vers" - + "ions\030\002 \003(\01320.google.cloud.gkemulticloud." - + "v1.AwsK8sVersionInfo\022\035\n\025supported_aws_re" - + "gions\030\003 \003(\t:j\352Ag\n,gkemulticloud.googleap" - + "is.com/AwsServerConfig\0227projects/{projec" - + "t}/locations/{location}/awsServerConfig\"" - + "$\n\021AwsK8sVersionInfo\022\017\n\007version\030\001 \001(\t\")\n" - + "\014AwsSshConfig\022\031\n\014ec2_key_pair\030\001 \001(\tB\003\340A\002" - + "\"<\n\016AwsProxyConfig\022\022\n\nsecret_arn\030\001 \001(\t\022\026" - + "\n\016secret_version\030\002 \001(\t\"/\n\023AwsConfigEncry" - + "ption\022\030\n\013kms_key_arn\030\001 \001(\tB\003\340A\002\"\263\001\n\024AwsI" - + "nstancePlacement\022Q\n\007tenancy\030\001 \001(\0162;.goog" - + "le.cloud.gkemulticloud.v1.AwsInstancePla" - + "cement.TenancyB\003\340A\002\"H\n\007Tenancy\022\027\n\023TENANC" - + "Y_UNSPECIFIED\020\000\022\013\n\007DEFAULT\020\001\022\r\n\tDEDICATE" - + "D\020\002\022\010\n\004HOST\020\003B\347\001\n!com.google.cloud.gkemu" - + "lticloud.v1B\021AwsResourcesProtoP\001ZJgoogle" - + ".golang.org/genproto/googleapis/cloud/gk" - + "emulticloud/v1;gkemulticloud\252\002\035Google.Cl" - + "oud.GkeMultiCloud.V1\312\002\035Google\\Cloud\\GkeM" - + "ultiCloud\\V1\352\002 Google::Cloud::GkeMultiCl" - + "oud::V1b\006proto3" + + "icloud.v1.LoggingConfigB\003\340A\001\022C\n\006errors\030\024" + + " \003(\0132..google.cloud.gkemulticloud.v1.Aws" + + "ClusterErrorB\003\340A\003\022O\n\021monitoring_config\030\025" + + " \001(\0132/.google.cloud.gkemulticloud.v1.Mon" + + "itoringConfigB\003\340A\001\0322\n\020AnnotationsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"u\n\005State\022" + + "\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001" + + "\022\013\n\007RUNNING\020\002\022\017\n\013RECONCILING\020\003\022\014\n\010STOPPI" + + "NG\020\004\022\t\n\005ERROR\020\005\022\014\n\010DEGRADED\020\006:o\352Al\n\'gkem" + + "ulticloud.googleapis.com/AwsCluster\022Apro" + + "jects/{project}/locations/{location}/aws" + + "Clusters/{aws_cluster}\"\250\007\n\017AwsControlPla" + + "ne\022\024\n\007version\030\001 \001(\tB\003\340A\002\022\032\n\rinstance_typ" + + "e\030\002 \001(\tB\003\340A\001\022D\n\nssh_config\030\016 \001(\0132+.googl" + + "e.cloud.gkemulticloud.v1.AwsSshConfigB\003\340" + + "A\001\022\027\n\nsubnet_ids\030\004 \003(\tB\003\340A\002\022\037\n\022security_" + + "group_ids\030\005 \003(\tB\003\340A\001\022!\n\024iam_instance_pro" + + "file\030\007 \001(\tB\003\340A\002\022J\n\013root_volume\030\010 \001(\01320.g" + + "oogle.cloud.gkemulticloud.v1.AwsVolumeTe" + + "mplateB\003\340A\001\022J\n\013main_volume\030\t \001(\01320.googl" + + "e.cloud.gkemulticloud.v1.AwsVolumeTempla" + + "teB\003\340A\001\022V\n\023database_encryption\030\n \001(\01324.g" + + "oogle.cloud.gkemulticloud.v1.AwsDatabase" + + "EncryptionB\003\340A\002\022K\n\004tags\030\013 \003(\01328.google.c" + + "loud.gkemulticloud.v1.AwsControlPlane.Ta" + + "gsEntryB\003\340A\001\022b\n\033aws_services_authenticat" + + "ion\030\014 \001(\01328.google.cloud.gkemulticloud.v" + + "1.AwsServicesAuthenticationB\003\340A\002\022H\n\014prox" + + "y_config\030\020 \001(\0132-.google.cloud.gkemulticl" + + "oud.v1.AwsProxyConfigB\003\340A\001\022R\n\021config_enc" + + "ryption\030\021 \001(\01322.google.cloud.gkemulticlo" + + "ud.v1.AwsConfigEncryptionB\003\340A\002\022T\n\022instan" + + "ce_placement\030\022 \001(\01323.google.cloud.gkemul" + + "ticloud.v1.AwsInstancePlacementB\003\340A\001\032+\n\t" + + "TagsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"R\n\031AwsServicesAuthentication\022\025\n\010role_a" + + "rn\030\001 \001(\tB\003\340A\002\022\036\n\021role_session_name\030\002 \001(\t" + + "B\003\340A\001\"[\n\020AwsAuthorization\022G\n\013admin_users" + + "\030\001 \003(\0132-.google.cloud.gkemulticloud.v1.A" + + "wsClusterUserB\003\340A\002\"\'\n\016AwsClusterUser\022\025\n\010" + + "username\030\001 \001(\tB\003\340A\002\"1\n\025AwsDatabaseEncryp" + + "tion\022\030\n\013kms_key_arn\030\001 \001(\tB\003\340A\002\"\353\001\n\021AwsVo" + + "lumeTemplate\022\025\n\010size_gib\030\001 \001(\005B\003\340A\001\022U\n\013v" + + "olume_type\030\002 \001(\0162;.google.cloud.gkemulti" + + "cloud.v1.AwsVolumeTemplate.VolumeTypeB\003\340" + + "A\001\022\021\n\004iops\030\003 \001(\005B\003\340A\001\022\030\n\013kms_key_arn\030\004 \001" + + "(\tB\003\340A\001\";\n\nVolumeType\022\033\n\027VOLUME_TYPE_UNS" + + "PECIFIED\020\000\022\007\n\003GP2\020\001\022\007\n\003GP3\020\002\"{\n\024AwsClust" + + "erNetworking\022\023\n\006vpc_id\030\001 \001(\tB\003\340A\002\022$\n\027pod" + + "_address_cidr_blocks\030\002 \003(\tB\003\340A\002\022(\n\033servi" + + "ce_address_cidr_blocks\030\003 \003(\tB\003\340A\002\"\366\007\n\013Aw" + + "sNodePool\022\014\n\004name\030\001 \001(\t\022\024\n\007version\030\003 \001(\t" + + "B\003\340A\002\022A\n\006config\030\034 \001(\0132,.google.cloud.gke" + + "multicloud.v1.AwsNodeConfigB\003\340A\002\022O\n\013auto" + + "scaling\030\031 \001(\01325.google.cloud.gkemulticlo" + + "ud.v1.AwsNodePoolAutoscalingB\003\340A\002\022\026\n\tsub" + + "net_id\030\006 \001(\tB\003\340A\002\022D\n\005state\030\020 \001(\01620.googl" + + "e.cloud.gkemulticloud.v1.AwsNodePool.Sta" + + "teB\003\340A\003\022\020\n\003uid\030\021 \001(\tB\003\340A\003\022\030\n\013reconciling" + + "\030\022 \001(\010B\003\340A\003\0224\n\013create_time\030\023 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\0224\n\013update_time" + + "\030\024 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "\014\n\004etag\030\025 \001(\t\022U\n\013annotations\030\026 \003(\0132;.goo" + + "gle.cloud.gkemulticloud.v1.AwsNodePool.A" + + "nnotationsEntryB\003\340A\001\022R\n\023max_pods_constra" + + "int\030\033 \001(\01320.google.cloud.gkemulticloud.v" + + "1.MaxPodsConstraintB\003\340A\002\022D\n\006errors\030\035 \003(\013" + + "2/.google.cloud.gkemulticloud.v1.AwsNode" + + "PoolErrorB\003\340A\003\0322\n\020AnnotationsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"u\n\005State\022\025\n\021S" + + "TATE_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007" + + "RUNNING\020\002\022\017\n\013RECONCILING\020\003\022\014\n\010STOPPING\020\004" + + "\022\t\n\005ERROR\020\005\022\014\n\010DEGRADED\020\006:\216\001\352A\212\001\n(gkemul" + + "ticloud.googleapis.com/AwsNodePool\022^proj" + + "ects/{project}/locations/{location}/awsC" + + "lusters/{aws_cluster}/awsNodePools/{aws_" + + "node_pool}\"\265\007\n\rAwsNodeConfig\022\032\n\rinstance" + + "_type\030\001 \001(\tB\003\340A\001\022J\n\013root_volume\030\002 \001(\01320." + + "google.cloud.gkemulticloud.v1.AwsVolumeT" + + "emplateB\003\340A\001\022=\n\006taints\030\003 \003(\0132(.google.cl" + + "oud.gkemulticloud.v1.NodeTaintB\003\340A\001\022M\n\006l" + + "abels\030\004 \003(\01328.google.cloud.gkemulticloud" + + ".v1.AwsNodeConfig.LabelsEntryB\003\340A\001\022I\n\004ta" + + "gs\030\005 \003(\01326.google.cloud.gkemulticloud.v1" + + ".AwsNodeConfig.TagsEntryB\003\340A\001\022!\n\024iam_ins" + + "tance_profile\030\006 \001(\tB\003\340A\002\022\027\n\nimage_type\030\013" + + " \001(\tB\003\340A\001\022D\n\nssh_config\030\t \001(\0132+.google.c" + + "loud.gkemulticloud.v1.AwsSshConfigB\003\340A\001\022" + + "\037\n\022security_group_ids\030\n \003(\tB\003\340A\001\022H\n\014prox" + + "y_config\030\014 \001(\0132-.google.cloud.gkemulticl" + + "oud.v1.AwsProxyConfigB\003\340A\001\022R\n\021config_enc" + + "ryption\030\r \001(\01322.google.cloud.gkemulticlo" + + "ud.v1.AwsConfigEncryptionB\003\340A\002\022T\n\022instan" + + "ce_placement\030\016 \001(\01323.google.cloud.gkemul" + + "ticloud.v1.AwsInstancePlacementB\003\340A\001\022p\n\036" + + "autoscaling_metrics_collection\030\017 \001(\0132C.g" + + "oogle.cloud.gkemulticloud.v1.AwsAutoscal" + + "ingGroupMetricsCollectionB\003\340A\001\032-\n\013Labels" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032+\n" + + "\tTagsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\"R\n\026AwsNodePoolAutoscaling\022\033\n\016min_node" + + "_count\030\001 \001(\005B\003\340A\002\022\033\n\016max_node_count\030\002 \001(" + + "\005B\003\340A\002\"\364\001\n\017AwsServerConfig\022\014\n\004name\030\001 \001(\t" + + "\022H\n\016valid_versions\030\002 \003(\01320.google.cloud." + + "gkemulticloud.v1.AwsK8sVersionInfo\022\035\n\025su" + + "pported_aws_regions\030\003 \003(\t:j\352Ag\n,gkemulti" + + "cloud.googleapis.com/AwsServerConfig\0227pr" + + "ojects/{project}/locations/{location}/aw" + + "sServerConfig\"$\n\021AwsK8sVersionInfo\022\017\n\007ve" + + "rsion\030\001 \001(\t\")\n\014AwsSshConfig\022\031\n\014ec2_key_p" + + "air\030\001 \001(\tB\003\340A\002\"<\n\016AwsProxyConfig\022\022\n\nsecr" + + "et_arn\030\001 \001(\t\022\026\n\016secret_version\030\002 \001(\t\"/\n\023" + + "AwsConfigEncryption\022\030\n\013kms_key_arn\030\001 \001(\t" + + "B\003\340A\002\"\263\001\n\024AwsInstancePlacement\022Q\n\007tenanc" + + "y\030\001 \001(\0162;.google.cloud.gkemulticloud.v1." + + "AwsInstancePlacement.TenancyB\003\340A\002\"H\n\007Ten" + + "ancy\022\027\n\023TENANCY_UNSPECIFIED\020\000\022\013\n\007DEFAULT" + + "\020\001\022\r\n\tDEDICATED\020\002\022\010\n\004HOST\020\003\"V\n$AwsAutosc" + + "alingGroupMetricsCollection\022\030\n\013granulari" + + "ty\030\001 \001(\tB\003\340A\002\022\024\n\007metrics\030\002 \003(\tB\003\340A\001\"\"\n\017A" + + "wsClusterError\022\017\n\007message\030\001 \001(\t\"#\n\020AwsNo" + + "dePoolError\022\017\n\007message\030\001 \001(\tB\347\001\n!com.goo" + + "gle.cloud.gkemulticloud.v1B\021AwsResources" + + "ProtoP\001ZJgoogle.golang.org/genproto/goog" + + "leapis/cloud/gkemulticloud/v1;gkemulticl" + + "oud\252\002\035Google.Cloud.GkeMultiCloud.V1\312\002\035Go" + + "ogle\\Cloud\\GkeMultiCloud\\V1\352\002 Google::Cl" + + "oud::GkeMultiCloud::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -302,6 +326,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ClusterCaCertificate", "Fleet", "LoggingConfig", + "Errors", + "MonitoringConfig", }); internal_static_google_cloud_gkemulticloud_v1_AwsCluster_AnnotationsEntry_descriptor = internal_static_google_cloud_gkemulticloud_v1_AwsCluster_descriptor.getNestedTypes().get(0); @@ -409,6 +435,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Etag", "Annotations", "MaxPodsConstraint", + "Errors", }); internal_static_google_cloud_gkemulticloud_v1_AwsNodePool_AnnotationsEntry_descriptor = internal_static_google_cloud_gkemulticloud_v1_AwsNodePool_descriptor @@ -438,6 +465,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProxyConfig", "ConfigEncryption", "InstancePlacement", + "AutoscalingMetricsCollection", }); internal_static_google_cloud_gkemulticloud_v1_AwsNodeConfig_LabelsEntry_descriptor = internal_static_google_cloud_gkemulticloud_v1_AwsNodeConfig_descriptor @@ -515,6 +543,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Tenancy", }); + internal_static_google_cloud_gkemulticloud_v1_AwsAutoscalingGroupMetricsCollection_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_gkemulticloud_v1_AwsAutoscalingGroupMetricsCollection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkemulticloud_v1_AwsAutoscalingGroupMetricsCollection_descriptor, + new java.lang.String[] { + "Granularity", "Metrics", + }); + internal_static_google_cloud_gkemulticloud_v1_AwsClusterError_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_gkemulticloud_v1_AwsClusterError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkemulticloud_v1_AwsClusterError_descriptor, + new java.lang.String[] { + "Message", + }); + internal_static_google_cloud_gkemulticloud_v1_AwsNodePoolError_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_gkemulticloud_v1_AwsNodePoolError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkemulticloud_v1_AwsNodePoolError_descriptor, + new java.lang.String[] { + "Message", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServicesAuthentication.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServicesAuthentication.java index 8d70c49e9e3f..b8706508001e 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServicesAuthentication.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServicesAuthentication.java @@ -74,8 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The Amazon Resource Name (ARN) of the role that the Anthos Multi-Cloud API
-   * will assume when managing AWS resources on your account.
+   * Required. The Amazon Resource Name (ARN) of the role that the Anthos
+   * Multi-Cloud API will assume when managing AWS resources on your account.
    * 
* * string role_arn = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -98,8 +98,8 @@ public java.lang.String getRoleArn() { * * *
-   * Required. The Amazon Resource Name (ARN) of the role that the Anthos Multi-Cloud API
-   * will assume when managing AWS resources on your account.
+   * Required. The Amazon Resource Name (ARN) of the role that the Anthos
+   * Multi-Cloud API will assume when managing AWS resources on your account.
    * 
* * string role_arn = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -528,8 +528,8 @@ public Builder mergeFrom( * * *
-     * Required. The Amazon Resource Name (ARN) of the role that the Anthos Multi-Cloud API
-     * will assume when managing AWS resources on your account.
+     * Required. The Amazon Resource Name (ARN) of the role that the Anthos
+     * Multi-Cloud API will assume when managing AWS resources on your account.
      * 
* * string role_arn = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -551,8 +551,8 @@ public java.lang.String getRoleArn() { * * *
-     * Required. The Amazon Resource Name (ARN) of the role that the Anthos Multi-Cloud API
-     * will assume when managing AWS resources on your account.
+     * Required. The Amazon Resource Name (ARN) of the role that the Anthos
+     * Multi-Cloud API will assume when managing AWS resources on your account.
      * 
* * string role_arn = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -574,8 +574,8 @@ public com.google.protobuf.ByteString getRoleArnBytes() { * * *
-     * Required. The Amazon Resource Name (ARN) of the role that the Anthos Multi-Cloud API
-     * will assume when managing AWS resources on your account.
+     * Required. The Amazon Resource Name (ARN) of the role that the Anthos
+     * Multi-Cloud API will assume when managing AWS resources on your account.
      * 
* * string role_arn = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -596,8 +596,8 @@ public Builder setRoleArn(java.lang.String value) { * * *
-     * Required. The Amazon Resource Name (ARN) of the role that the Anthos Multi-Cloud API
-     * will assume when managing AWS resources on your account.
+     * Required. The Amazon Resource Name (ARN) of the role that the Anthos
+     * Multi-Cloud API will assume when managing AWS resources on your account.
      * 
* * string role_arn = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -614,8 +614,8 @@ public Builder clearRoleArn() { * * *
-     * Required. The Amazon Resource Name (ARN) of the role that the Anthos Multi-Cloud API
-     * will assume when managing AWS resources on your account.
+     * Required. The Amazon Resource Name (ARN) of the role that the Anthos
+     * Multi-Cloud API will assume when managing AWS resources on your account.
      * 
* * string role_arn = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServicesAuthenticationOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServicesAuthenticationOrBuilder.java index cf9ad1e222c2..216662d4e10d 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServicesAuthenticationOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServicesAuthenticationOrBuilder.java @@ -27,8 +27,8 @@ public interface AwsServicesAuthenticationOrBuilder * * *
-   * Required. The Amazon Resource Name (ARN) of the role that the Anthos Multi-Cloud API
-   * will assume when managing AWS resources on your account.
+   * Required. The Amazon Resource Name (ARN) of the role that the Anthos
+   * Multi-Cloud API will assume when managing AWS resources on your account.
    * 
* * string role_arn = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -40,8 +40,8 @@ public interface AwsServicesAuthenticationOrBuilder * * *
-   * Required. The Amazon Resource Name (ARN) of the role that the Anthos Multi-Cloud API
-   * will assume when managing AWS resources on your account.
+   * Required. The Amazon Resource Name (ARN) of the role that the Anthos
+   * Multi-Cloud API will assume when managing AWS resources on your account.
    * 
* * string role_arn = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsVolumeTemplate.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsVolumeTemplate.java index 20c7446b0979..89a42e7fadb0 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsVolumeTemplate.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsVolumeTemplate.java @@ -300,7 +300,8 @@ public com.google.cloud.gkemulticloud.v1.AwsVolumeTemplate.VolumeType getVolumeT * * *
-   * Optional. The number of I/O operations per second (IOPS) to provision for GP3 volume.
+   * Optional. The number of I/O operations per second (IOPS) to provision for
+   * GP3 volume.
    * 
* * int32 iops = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -318,8 +319,8 @@ public int getIops() { * * *
-   * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to
-   * encrypt AWS EBS volumes.
+   * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK)
+   * used to encrypt AWS EBS volumes.
    * If not specified, the default Amazon managed key associated to
    * the AWS region where this cluster runs will be used.
    * 
@@ -344,8 +345,8 @@ public java.lang.String getKmsKeyArn() { * * *
-   * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to
-   * encrypt AWS EBS volumes.
+   * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK)
+   * used to encrypt AWS EBS volumes.
    * If not specified, the default Amazon managed key associated to
    * the AWS region where this cluster runs will be used.
    * 
@@ -936,7 +937,8 @@ public Builder clearVolumeType() { * * *
-     * Optional. The number of I/O operations per second (IOPS) to provision for GP3 volume.
+     * Optional. The number of I/O operations per second (IOPS) to provision for
+     * GP3 volume.
      * 
* * int32 iops = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -951,7 +953,8 @@ public int getIops() { * * *
-     * Optional. The number of I/O operations per second (IOPS) to provision for GP3 volume.
+     * Optional. The number of I/O operations per second (IOPS) to provision for
+     * GP3 volume.
      * 
* * int32 iops = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -969,7 +972,8 @@ public Builder setIops(int value) { * * *
-     * Optional. The number of I/O operations per second (IOPS) to provision for GP3 volume.
+     * Optional. The number of I/O operations per second (IOPS) to provision for
+     * GP3 volume.
      * 
* * int32 iops = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -988,8 +992,8 @@ public Builder clearIops() { * * *
-     * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to
-     * encrypt AWS EBS volumes.
+     * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK)
+     * used to encrypt AWS EBS volumes.
      * If not specified, the default Amazon managed key associated to
      * the AWS region where this cluster runs will be used.
      * 
@@ -1013,8 +1017,8 @@ public java.lang.String getKmsKeyArn() { * * *
-     * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to
-     * encrypt AWS EBS volumes.
+     * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK)
+     * used to encrypt AWS EBS volumes.
      * If not specified, the default Amazon managed key associated to
      * the AWS region where this cluster runs will be used.
      * 
@@ -1038,8 +1042,8 @@ public com.google.protobuf.ByteString getKmsKeyArnBytes() { * * *
-     * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to
-     * encrypt AWS EBS volumes.
+     * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK)
+     * used to encrypt AWS EBS volumes.
      * If not specified, the default Amazon managed key associated to
      * the AWS region where this cluster runs will be used.
      * 
@@ -1062,8 +1066,8 @@ public Builder setKmsKeyArn(java.lang.String value) { * * *
-     * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to
-     * encrypt AWS EBS volumes.
+     * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK)
+     * used to encrypt AWS EBS volumes.
      * If not specified, the default Amazon managed key associated to
      * the AWS region where this cluster runs will be used.
      * 
@@ -1082,8 +1086,8 @@ public Builder clearKmsKeyArn() { * * *
-     * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to
-     * encrypt AWS EBS volumes.
+     * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK)
+     * used to encrypt AWS EBS volumes.
      * If not specified, the default Amazon managed key associated to
      * the AWS region where this cluster runs will be used.
      * 
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsVolumeTemplateOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsVolumeTemplateOrBuilder.java index 28025603b482..fa5c4f4bb7e5 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsVolumeTemplateOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsVolumeTemplateOrBuilder.java @@ -73,7 +73,8 @@ public interface AwsVolumeTemplateOrBuilder * * *
-   * Optional. The number of I/O operations per second (IOPS) to provision for GP3 volume.
+   * Optional. The number of I/O operations per second (IOPS) to provision for
+   * GP3 volume.
    * 
* * int32 iops = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -86,8 +87,8 @@ public interface AwsVolumeTemplateOrBuilder * * *
-   * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to
-   * encrypt AWS EBS volumes.
+   * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK)
+   * used to encrypt AWS EBS volumes.
    * If not specified, the default Amazon managed key associated to
    * the AWS region where this cluster runs will be used.
    * 
@@ -101,8 +102,8 @@ public interface AwsVolumeTemplateOrBuilder * * *
-   * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to
-   * encrypt AWS EBS volumes.
+   * Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK)
+   * used to encrypt AWS EBS volumes.
    * If not specified, the default Amazon managed key associated to
    * the AWS region where this cluster runs will be used.
    * 
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClient.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClient.java index fefb51ce2780..0d5d0e43207f 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClient.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClient.java @@ -24,9 +24,10 @@ *
  * `AzureClient` resources hold client authentication information needed by the
  * Anthos Multi-Cloud API to manage Azure resources on your Azure subscription.
- * When an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] is created, an `AzureClient` resource needs to be
- * provided and all operations on Azure resources associated to that cluster
- * will authenticate to Azure services using the given client.
+ * When an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] is
+ * created, an `AzureClient` resource needs to be provided and all operations on
+ * Azure resources associated to that cluster will authenticate to Azure
+ * services using the given client.
  * `AzureClient` resources are immutable and cannot be modified upon creation.
  * Each `AzureClient` resource is bound to a single Azure Active Directory
  * Application and tenant.
@@ -755,9 +756,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    * 
    * `AzureClient` resources hold client authentication information needed by the
    * Anthos Multi-Cloud API to manage Azure resources on your Azure subscription.
-   * When an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] is created, an `AzureClient` resource needs to be
-   * provided and all operations on Azure resources associated to that cluster
-   * will authenticate to Azure services using the given client.
+   * When an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] is
+   * created, an `AzureClient` resource needs to be provided and all operations on
+   * Azure resources associated to that cluster will authenticate to Azure
+   * services using the given client.
    * `AzureClient` resources are immutable and cannot be modified upon creation.
    * Each `AzureClient` resource is bound to a single Azure Active Directory
    * Application and tenant.
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureCluster.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureCluster.java
index cc337329a1a5..b426214c0e47 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureCluster.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureCluster.java
@@ -48,6 +48,7 @@ private AzureCluster() {
     uid_ = "";
     etag_ = "";
     clusterCaCertificate_ = "";
+    errors_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
@@ -511,8 +512,8 @@ public com.google.protobuf.ByteString getAzureRegionBytes() {
    *
    *
    * 
-   * Required. The ARM ID of the resource group where the cluster resources are deployed.
-   * For example:
+   * Required. The ARM ID of the resource group where the cluster resources are
+   * deployed. For example:
    * `/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>`
    * 
* @@ -536,8 +537,8 @@ public java.lang.String getResourceGroupId() { * * *
-   * Required. The ARM ID of the resource group where the cluster resources are deployed.
-   * For example:
+   * Required. The ARM ID of the resource group where the cluster resources are
+   * deployed. For example:
    * `/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>`
    * 
* @@ -564,8 +565,10 @@ public com.google.protobuf.ByteString getResourceGroupIdBytes() { * * *
-   * Required. Name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains authentication configuration for
-   * how the Anthos Multi-Cloud API connects to Azure APIs.
+   * Required. Name of the
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains
+   * authentication configuration for how the Anthos Multi-Cloud API connects to
+   * Azure APIs.
    * The `AzureClient` resource must reside on the same GCP project and region
    * as the `AzureCluster`.
    * `AzureClient` names are formatted as
@@ -594,8 +597,10 @@ public java.lang.String getAzureClient() {
    *
    *
    * 
-   * Required. Name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains authentication configuration for
-   * how the Anthos Multi-Cloud API connects to Azure APIs.
+   * Required. Name of the
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains
+   * authentication configuration for how the Anthos Multi-Cloud API connects to
+   * Azure APIs.
    * The `AzureClient` resource must reside on the same GCP project and region
    * as the `AzureCluster`.
    * `AzureClient` names are formatted as
@@ -1337,11 +1342,11 @@ public com.google.protobuf.ByteString getClusterCaCertificateBytes() {
    *
    *
    * 
-   * Optional. Fleet configuration.
+   * Required. Fleet configuration.
    * 
* * - * .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the fleet field is set. @@ -1354,11 +1359,11 @@ public boolean hasFleet() { * * *
-   * Optional. Fleet configuration.
+   * Required. Fleet configuration.
    * 
* * - * .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = REQUIRED]; * * * @return The fleet. @@ -1371,11 +1376,11 @@ public com.google.cloud.gkemulticloud.v1.Fleet getFleet() { * * *
-   * Optional. Fleet configuration.
+   * Required. Fleet configuration.
    * 
* * - * .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override @@ -1389,7 +1394,7 @@ public com.google.cloud.gkemulticloud.v1.FleetOrBuilder getFleetOrBuilder() { * * *
-   * Output only. Mananged Azure resources for this cluster.
+   * Output only. Managed Azure resources for this cluster.
    * 
* * @@ -1406,7 +1411,7 @@ public boolean hasManagedResources() { * * *
-   * Output only. Mananged Azure resources for this cluster.
+   * Output only. Managed Azure resources for this cluster.
    * 
* * @@ -1425,7 +1430,7 @@ public com.google.cloud.gkemulticloud.v1.AzureClusterResources getManagedResourc * * *
-   * Output only. Mananged Azure resources for this cluster.
+   * Output only. Managed Azure resources for this cluster.
    * 
* * @@ -1492,6 +1497,141 @@ public com.google.cloud.gkemulticloud.v1.LoggingConfigOrBuilder getLoggingConfig return getLoggingConfig(); } + public static final int ERRORS_FIELD_NUMBER = 24; + private java.util.List errors_; + /** + * + * + *
+   * Output only. A set of errors found in the cluster.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getErrorsList() { + return errors_; + } + /** + * + * + *
+   * Output only. A set of errors found in the cluster.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getErrorsOrBuilderList() { + return errors_; + } + /** + * + * + *
+   * Output only. A set of errors found in the cluster.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getErrorsCount() { + return errors_.size(); + } + /** + * + * + *
+   * Output only. A set of errors found in the cluster.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AzureClusterError getErrors(int index) { + return errors_.get(index); + } + /** + * + * + *
+   * Output only. A set of errors found in the cluster.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AzureClusterErrorOrBuilder getErrorsOrBuilder( + int index) { + return errors_.get(index); + } + + public static final int MONITORING_CONFIG_FIELD_NUMBER = 25; + private com.google.cloud.gkemulticloud.v1.MonitoringConfig monitoringConfig_; + /** + * + * + *
+   * Optional. Monitoring configuration for this cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the monitoringConfig field is set. + */ + @java.lang.Override + public boolean hasMonitoringConfig() { + return monitoringConfig_ != null; + } + /** + * + * + *
+   * Optional. Monitoring configuration for this cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The monitoringConfig. + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.MonitoringConfig getMonitoringConfig() { + return monitoringConfig_ == null + ? com.google.cloud.gkemulticloud.v1.MonitoringConfig.getDefaultInstance() + : monitoringConfig_; + } + /** + * + * + *
+   * Optional. Monitoring configuration for this cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.MonitoringConfigOrBuilder + getMonitoringConfigOrBuilder() { + return getMonitoringConfig(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1569,6 +1709,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (loggingConfig_ != null) { output.writeMessage(23, getLoggingConfig()); } + for (int i = 0; i < errors_.size(); i++) { + output.writeMessage(24, errors_.get(i)); + } + if (monitoringConfig_ != null) { + output.writeMessage(25, getMonitoringConfig()); + } getUnknownFields().writeTo(output); } @@ -1650,6 +1796,12 @@ public int getSerializedSize() { if (loggingConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getLoggingConfig()); } + for (int i = 0; i < errors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, errors_.get(i)); + } + if (monitoringConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getMonitoringConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1714,6 +1866,11 @@ public boolean equals(final java.lang.Object obj) { if (hasLoggingConfig()) { if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; } + if (!getErrorsList().equals(other.getErrorsList())) return false; + if (hasMonitoringConfig() != other.hasMonitoringConfig()) return false; + if (hasMonitoringConfig()) { + if (!getMonitoringConfig().equals(other.getMonitoringConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1787,6 +1944,14 @@ public int hashCode() { hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getLoggingConfig().hashCode(); } + if (getErrorsCount() > 0) { + hash = (37 * hash) + ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getErrorsList().hashCode(); + } + if (hasMonitoringConfig()) { + hash = (37 * hash) + MONITORING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMonitoringConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2022,6 +2187,19 @@ public Builder clear() { loggingConfig_ = null; loggingConfigBuilder_ = null; } + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + } else { + errors_ = null; + errorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (monitoringConfigBuilder_ == null) { + monitoringConfig_ = null; + } else { + monitoringConfig_ = null; + monitoringConfigBuilder_ = null; + } return this; } @@ -2108,6 +2286,20 @@ public com.google.cloud.gkemulticloud.v1.AzureCluster buildPartial() { } else { result.loggingConfig_ = loggingConfigBuilder_.build(); } + if (errorsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + errors_ = java.util.Collections.unmodifiableList(errors_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.errors_ = errors_; + } else { + result.errors_ = errorsBuilder_.build(); + } + if (monitoringConfigBuilder_ == null) { + result.monitoringConfig_ = monitoringConfig_; + } else { + result.monitoringConfig_ = monitoringConfigBuilder_.build(); + } onBuilt(); return result; } @@ -2227,6 +2419,36 @@ public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.AzureCluster other) { if (other.hasLoggingConfig()) { mergeLoggingConfig(other.getLoggingConfig()); } + if (errorsBuilder_ == null) { + if (!other.errors_.isEmpty()) { + if (errors_.isEmpty()) { + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureErrorsIsMutable(); + errors_.addAll(other.errors_); + } + onChanged(); + } + } else { + if (!other.errors_.isEmpty()) { + if (errorsBuilder_.isEmpty()) { + errorsBuilder_.dispose(); + errorsBuilder_ = null; + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000002); + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorsFieldBuilder() + : null; + } else { + errorsBuilder_.addAllMessages(other.errors_); + } + } + } + if (other.hasMonitoringConfig()) { + mergeMonitoringConfig(other.getMonitoringConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2386,6 +2608,27 @@ public Builder mergeFrom( break; } // case 186 + case 194: + { + com.google.cloud.gkemulticloud.v1.AzureClusterError m = + input.readMessage( + com.google.cloud.gkemulticloud.v1.AzureClusterError.parser(), + extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.addMessage(m); + } + break; + } // case 194 + case 202: + { + input.readMessage( + getMonitoringConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 202 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2773,8 +3016,8 @@ public Builder setAzureRegionBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The ARM ID of the resource group where the cluster resources are deployed.
-     * For example:
+     * Required. The ARM ID of the resource group where the cluster resources are
+     * deployed. For example:
      * `/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>`
      * 
* @@ -2797,8 +3040,8 @@ public java.lang.String getResourceGroupId() { * * *
-     * Required. The ARM ID of the resource group where the cluster resources are deployed.
-     * For example:
+     * Required. The ARM ID of the resource group where the cluster resources are
+     * deployed. For example:
      * `/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>`
      * 
* @@ -2821,8 +3064,8 @@ public com.google.protobuf.ByteString getResourceGroupIdBytes() { * * *
-     * Required. The ARM ID of the resource group where the cluster resources are deployed.
-     * For example:
+     * Required. The ARM ID of the resource group where the cluster resources are
+     * deployed. For example:
      * `/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>`
      * 
* @@ -2844,8 +3087,8 @@ public Builder setResourceGroupId(java.lang.String value) { * * *
-     * Required. The ARM ID of the resource group where the cluster resources are deployed.
-     * For example:
+     * Required. The ARM ID of the resource group where the cluster resources are
+     * deployed. For example:
      * `/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>`
      * 
* @@ -2863,8 +3106,8 @@ public Builder clearResourceGroupId() { * * *
-     * Required. The ARM ID of the resource group where the cluster resources are deployed.
-     * For example:
+     * Required. The ARM ID of the resource group where the cluster resources are
+     * deployed. For example:
      * `/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>`
      * 
* @@ -2889,8 +3132,10 @@ public Builder setResourceGroupIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. Name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains authentication configuration for
-     * how the Anthos Multi-Cloud API connects to Azure APIs.
+     * Required. Name of the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains
+     * authentication configuration for how the Anthos Multi-Cloud API connects to
+     * Azure APIs.
      * The `AzureClient` resource must reside on the same GCP project and region
      * as the `AzureCluster`.
      * `AzureClient` names are formatted as
@@ -2918,8 +3163,10 @@ public java.lang.String getAzureClient() {
      *
      *
      * 
-     * Required. Name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains authentication configuration for
-     * how the Anthos Multi-Cloud API connects to Azure APIs.
+     * Required. Name of the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains
+     * authentication configuration for how the Anthos Multi-Cloud API connects to
+     * Azure APIs.
      * The `AzureClient` resource must reside on the same GCP project and region
      * as the `AzureCluster`.
      * `AzureClient` names are formatted as
@@ -2947,8 +3194,10 @@ public com.google.protobuf.ByteString getAzureClientBytes() {
      *
      *
      * 
-     * Required. Name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains authentication configuration for
-     * how the Anthos Multi-Cloud API connects to Azure APIs.
+     * Required. Name of the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains
+     * authentication configuration for how the Anthos Multi-Cloud API connects to
+     * Azure APIs.
      * The `AzureClient` resource must reside on the same GCP project and region
      * as the `AzureCluster`.
      * `AzureClient` names are formatted as
@@ -2975,8 +3224,10 @@ public Builder setAzureClient(java.lang.String value) {
      *
      *
      * 
-     * Required. Name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains authentication configuration for
-     * how the Anthos Multi-Cloud API connects to Azure APIs.
+     * Required. Name of the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains
+     * authentication configuration for how the Anthos Multi-Cloud API connects to
+     * Azure APIs.
      * The `AzureClient` resource must reside on the same GCP project and region
      * as the `AzureCluster`.
      * `AzureClient` names are formatted as
@@ -2999,8 +3250,10 @@ public Builder clearAzureClient() {
      *
      *
      * 
-     * Required. Name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains authentication configuration for
-     * how the Anthos Multi-Cloud API connects to Azure APIs.
+     * Required. Name of the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains
+     * authentication configuration for how the Anthos Multi-Cloud API connects to
+     * Azure APIs.
      * The `AzureClient` resource must reside on the same GCP project and region
      * as the `AzureCluster`.
      * `AzureClient` names are formatted as
@@ -5071,11 +5324,11 @@ public Builder setClusterCaCertificateBytes(com.google.protobuf.ByteString value
      *
      *
      * 
-     * Optional. Fleet configuration.
+     * Required. Fleet configuration.
      * 
* * - * .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the fleet field is set. @@ -5087,11 +5340,11 @@ public boolean hasFleet() { * * *
-     * Optional. Fleet configuration.
+     * Required. Fleet configuration.
      * 
* * - * .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = REQUIRED]; * * * @return The fleet. @@ -5109,11 +5362,11 @@ public com.google.cloud.gkemulticloud.v1.Fleet getFleet() { * * *
-     * Optional. Fleet configuration.
+     * Required. Fleet configuration.
      * 
* * - * .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setFleet(com.google.cloud.gkemulticloud.v1.Fleet value) { @@ -5133,11 +5386,11 @@ public Builder setFleet(com.google.cloud.gkemulticloud.v1.Fleet value) { * * *
-     * Optional. Fleet configuration.
+     * Required. Fleet configuration.
      * 
* * - * .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setFleet(com.google.cloud.gkemulticloud.v1.Fleet.Builder builderForValue) { @@ -5154,11 +5407,11 @@ public Builder setFleet(com.google.cloud.gkemulticloud.v1.Fleet.Builder builderF * * *
-     * Optional. Fleet configuration.
+     * Required. Fleet configuration.
      * 
* * - * .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder mergeFleet(com.google.cloud.gkemulticloud.v1.Fleet value) { @@ -5182,11 +5435,11 @@ public Builder mergeFleet(com.google.cloud.gkemulticloud.v1.Fleet value) { * * *
-     * Optional. Fleet configuration.
+     * Required. Fleet configuration.
      * 
* * - * .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder clearFleet() { @@ -5204,11 +5457,11 @@ public Builder clearFleet() { * * *
-     * Optional. Fleet configuration.
+     * Required. Fleet configuration.
      * 
* * - * .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.gkemulticloud.v1.Fleet.Builder getFleetBuilder() { @@ -5220,11 +5473,11 @@ public com.google.cloud.gkemulticloud.v1.Fleet.Builder getFleetBuilder() { * * *
-     * Optional. Fleet configuration.
+     * Required. Fleet configuration.
      * 
* * - * .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.gkemulticloud.v1.FleetOrBuilder getFleetOrBuilder() { @@ -5240,11 +5493,11 @@ public com.google.cloud.gkemulticloud.v1.FleetOrBuilder getFleetOrBuilder() { * * *
-     * Optional. Fleet configuration.
+     * Required. Fleet configuration.
      * 
* * - * .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = REQUIRED]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -5274,7 +5527,7 @@ public com.google.cloud.gkemulticloud.v1.FleetOrBuilder getFleetOrBuilder() { * * *
-     * Output only. Mananged Azure resources for this cluster.
+     * Output only. Managed Azure resources for this cluster.
      * 
* * @@ -5290,7 +5543,7 @@ public boolean hasManagedResources() { * * *
-     * Output only. Mananged Azure resources for this cluster.
+     * Output only. Managed Azure resources for this cluster.
      * 
* * @@ -5312,7 +5565,7 @@ public com.google.cloud.gkemulticloud.v1.AzureClusterResources getManagedResourc * * *
-     * Output only. Mananged Azure resources for this cluster.
+     * Output only. Managed Azure resources for this cluster.
      * 
* * @@ -5337,7 +5590,7 @@ public Builder setManagedResources( * * *
-     * Output only. Mananged Azure resources for this cluster.
+     * Output only. Managed Azure resources for this cluster.
      * 
* * @@ -5359,7 +5612,7 @@ public Builder setManagedResources( * * *
-     * Output only. Mananged Azure resources for this cluster.
+     * Output only. Managed Azure resources for this cluster.
      * 
* * @@ -5388,7 +5641,7 @@ public Builder mergeManagedResources( * * *
-     * Output only. Mananged Azure resources for this cluster.
+     * Output only. Managed Azure resources for this cluster.
      * 
* * @@ -5410,7 +5663,7 @@ public Builder clearManagedResources() { * * *
-     * Output only. Mananged Azure resources for this cluster.
+     * Output only. Managed Azure resources for this cluster.
      * 
* * @@ -5427,7 +5680,7 @@ public Builder clearManagedResources() { * * *
-     * Output only. Mananged Azure resources for this cluster.
+     * Output only. Managed Azure resources for this cluster.
      * 
* * @@ -5448,7 +5701,7 @@ public Builder clearManagedResources() { * * *
-     * Output only. Mananged Azure resources for this cluster.
+     * Output only. Managed Azure resources for this cluster.
      * 
* * @@ -5676,6 +5929,600 @@ public com.google.cloud.gkemulticloud.v1.LoggingConfigOrBuilder getLoggingConfig return loggingConfigBuilder_; } + private java.util.List errors_ = + java.util.Collections.emptyList(); + + private void ensureErrorsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + errors_ = + new java.util.ArrayList(errors_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AzureClusterError, + com.google.cloud.gkemulticloud.v1.AzureClusterError.Builder, + com.google.cloud.gkemulticloud.v1.AzureClusterErrorOrBuilder> + errorsBuilder_; + + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getErrorsList() { + if (errorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(errors_); + } else { + return errorsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getErrorsCount() { + if (errorsBuilder_ == null) { + return errors_.size(); + } else { + return errorsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkemulticloud.v1.AzureClusterError getErrors(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setErrors(int index, com.google.cloud.gkemulticloud.v1.AzureClusterError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.set(index, value); + onChanged(); + } else { + errorsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setErrors( + int index, com.google.cloud.gkemulticloud.v1.AzureClusterError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.set(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors(com.google.cloud.gkemulticloud.v1.AzureClusterError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(value); + onChanged(); + } else { + errorsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors(int index, com.google.cloud.gkemulticloud.v1.AzureClusterError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(index, value); + onChanged(); + } else { + errorsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors( + com.google.cloud.gkemulticloud.v1.AzureClusterError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors( + int index, com.google.cloud.gkemulticloud.v1.AzureClusterError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllErrors( + java.lang.Iterable values) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); + onChanged(); + } else { + errorsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearErrors() { + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + errorsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeErrors(int index) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.remove(index); + onChanged(); + } else { + errorsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkemulticloud.v1.AzureClusterError.Builder getErrorsBuilder(int index) { + return getErrorsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkemulticloud.v1.AzureClusterErrorOrBuilder getErrorsOrBuilder( + int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getErrorsOrBuilderList() { + if (errorsBuilder_ != null) { + return errorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errors_); + } + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkemulticloud.v1.AzureClusterError.Builder addErrorsBuilder() { + return getErrorsFieldBuilder() + .addBuilder(com.google.cloud.gkemulticloud.v1.AzureClusterError.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkemulticloud.v1.AzureClusterError.Builder addErrorsBuilder(int index) { + return getErrorsFieldBuilder() + .addBuilder( + index, com.google.cloud.gkemulticloud.v1.AzureClusterError.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. A set of errors found in the cluster.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getErrorsBuilderList() { + return getErrorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AzureClusterError, + com.google.cloud.gkemulticloud.v1.AzureClusterError.Builder, + com.google.cloud.gkemulticloud.v1.AzureClusterErrorOrBuilder> + getErrorsFieldBuilder() { + if (errorsBuilder_ == null) { + errorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AzureClusterError, + com.google.cloud.gkemulticloud.v1.AzureClusterError.Builder, + com.google.cloud.gkemulticloud.v1.AzureClusterErrorOrBuilder>( + errors_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + errors_ = null; + } + return errorsBuilder_; + } + + private com.google.cloud.gkemulticloud.v1.MonitoringConfig monitoringConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.MonitoringConfig, + com.google.cloud.gkemulticloud.v1.MonitoringConfig.Builder, + com.google.cloud.gkemulticloud.v1.MonitoringConfigOrBuilder> + monitoringConfigBuilder_; + /** + * + * + *
+     * Optional. Monitoring configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the monitoringConfig field is set. + */ + public boolean hasMonitoringConfig() { + return monitoringConfigBuilder_ != null || monitoringConfig_ != null; + } + /** + * + * + *
+     * Optional. Monitoring configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The monitoringConfig. + */ + public com.google.cloud.gkemulticloud.v1.MonitoringConfig getMonitoringConfig() { + if (monitoringConfigBuilder_ == null) { + return monitoringConfig_ == null + ? com.google.cloud.gkemulticloud.v1.MonitoringConfig.getDefaultInstance() + : monitoringConfig_; + } else { + return monitoringConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Monitoring configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMonitoringConfig(com.google.cloud.gkemulticloud.v1.MonitoringConfig value) { + if (monitoringConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + monitoringConfig_ = value; + onChanged(); + } else { + monitoringConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Monitoring configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMonitoringConfig( + com.google.cloud.gkemulticloud.v1.MonitoringConfig.Builder builderForValue) { + if (monitoringConfigBuilder_ == null) { + monitoringConfig_ = builderForValue.build(); + onChanged(); + } else { + monitoringConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. Monitoring configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMonitoringConfig(com.google.cloud.gkemulticloud.v1.MonitoringConfig value) { + if (monitoringConfigBuilder_ == null) { + if (monitoringConfig_ != null) { + monitoringConfig_ = + com.google.cloud.gkemulticloud.v1.MonitoringConfig.newBuilder(monitoringConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + monitoringConfig_ = value; + } + onChanged(); + } else { + monitoringConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Monitoring configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMonitoringConfig() { + if (monitoringConfigBuilder_ == null) { + monitoringConfig_ = null; + onChanged(); + } else { + monitoringConfig_ = null; + monitoringConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. Monitoring configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkemulticloud.v1.MonitoringConfig.Builder getMonitoringConfigBuilder() { + + onChanged(); + return getMonitoringConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Monitoring configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkemulticloud.v1.MonitoringConfigOrBuilder + getMonitoringConfigOrBuilder() { + if (monitoringConfigBuilder_ != null) { + return monitoringConfigBuilder_.getMessageOrBuilder(); + } else { + return monitoringConfig_ == null + ? com.google.cloud.gkemulticloud.v1.MonitoringConfig.getDefaultInstance() + : monitoringConfig_; + } + } + /** + * + * + *
+     * Optional. Monitoring configuration for this cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.MonitoringConfig, + com.google.cloud.gkemulticloud.v1.MonitoringConfig.Builder, + com.google.cloud.gkemulticloud.v1.MonitoringConfigOrBuilder> + getMonitoringConfigFieldBuilder() { + if (monitoringConfigBuilder_ == null) { + monitoringConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.MonitoringConfig, + com.google.cloud.gkemulticloud.v1.MonitoringConfig.Builder, + com.google.cloud.gkemulticloud.v1.MonitoringConfigOrBuilder>( + getMonitoringConfig(), getParentForChildren(), isClean()); + monitoringConfig_ = null; + } + return monitoringConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterError.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterError.java new file mode 100644 index 000000000000..8a5f0f0b6857 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterError.java @@ -0,0 +1,615 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/azure_resources.proto + +package com.google.cloud.gkemulticloud.v1; + +/** + * + * + *
+ * AzureClusterError describes errors found on Azure clusters.
+ * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.AzureClusterError} + */ +public final class AzureClusterError extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AzureClusterError) + AzureClusterErrorOrBuilder { + private static final long serialVersionUID = 0L; + // Use AzureClusterError.newBuilder() to construct. + private AzureClusterError(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AzureClusterError() { + message_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AzureClusterError(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AzureResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AzureClusterError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AzureResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AzureClusterError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.AzureClusterError.class, + com.google.cloud.gkemulticloud.v1.AzureClusterError.Builder.class); + } + + public static final int MESSAGE_FIELD_NUMBER = 1; + private volatile java.lang.Object message_; + /** + * + * + *
+   * Human-friendly description of the error.
+   * 
+ * + * string message = 1; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + * + * + *
+   * Human-friendly description of the error.
+   * 
+ * + * string message = 1; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkemulticloud.v1.AzureClusterError)) { + return super.equals(obj); + } + com.google.cloud.gkemulticloud.v1.AzureClusterError other = + (com.google.cloud.gkemulticloud.v1.AzureClusterError) obj; + + if (!getMessage().equals(other.getMessage())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkemulticloud.v1.AzureClusterError parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AzureClusterError parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AzureClusterError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AzureClusterError parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AzureClusterError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AzureClusterError parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AzureClusterError parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AzureClusterError parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AzureClusterError parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AzureClusterError parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AzureClusterError parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AzureClusterError parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkemulticloud.v1.AzureClusterError prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * AzureClusterError describes errors found on Azure clusters.
+   * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.AzureClusterError} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkemulticloud.v1.AzureClusterError) + com.google.cloud.gkemulticloud.v1.AzureClusterErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AzureResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AzureClusterError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AzureResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AzureClusterError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.AzureClusterError.class, + com.google.cloud.gkemulticloud.v1.AzureClusterError.Builder.class); + } + + // Construct using com.google.cloud.gkemulticloud.v1.AzureClusterError.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + message_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkemulticloud.v1.AzureResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AzureClusterError_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AzureClusterError getDefaultInstanceForType() { + return com.google.cloud.gkemulticloud.v1.AzureClusterError.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AzureClusterError build() { + com.google.cloud.gkemulticloud.v1.AzureClusterError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AzureClusterError buildPartial() { + com.google.cloud.gkemulticloud.v1.AzureClusterError result = + new com.google.cloud.gkemulticloud.v1.AzureClusterError(this); + result.message_ = message_; + 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.gkemulticloud.v1.AzureClusterError) { + return mergeFrom((com.google.cloud.gkemulticloud.v1.AzureClusterError) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.AzureClusterError other) { + if (other == com.google.cloud.gkemulticloud.v1.AzureClusterError.getDefaultInstance()) + return this; + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + 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: + { + message_ = input.readStringRequireUtf8(); + + 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 java.lang.Object message_ = ""; + /** + * + * + *
+     * Human-friendly description of the error.
+     * 
+ * + * string message = 1; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Human-friendly description of the error.
+     * 
+ * + * string message = 1; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Human-friendly description of the error.
+     * 
+ * + * string message = 1; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Human-friendly description of the error.
+     * 
+ * + * string message = 1; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + * + * + *
+     * Human-friendly description of the error.
+     * 
+ * + * string message = 1; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkemulticloud.v1.AzureClusterError) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkemulticloud.v1.AzureClusterError) + private static final com.google.cloud.gkemulticloud.v1.AzureClusterError DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkemulticloud.v1.AzureClusterError(); + } + + public static com.google.cloud.gkemulticloud.v1.AzureClusterError getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AzureClusterError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AzureClusterError getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterErrorOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterErrorOrBuilder.java new file mode 100644 index 000000000000..223a885baa2c --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterErrorOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/azure_resources.proto + +package com.google.cloud.gkemulticloud.v1; + +public interface AzureClusterErrorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AzureClusterError) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Human-friendly description of the error.
+   * 
+ * + * string message = 1; + * + * @return The message. + */ + java.lang.String getMessage(); + /** + * + * + *
+   * Human-friendly description of the error.
+   * 
+ * + * string message = 1; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterNetworking.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterNetworking.java index 00a2a47cd47a..86f29dfe6ee3 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterNetworking.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterNetworking.java @@ -76,8 +76,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The Azure Resource Manager (ARM) ID of the VNet associated with your
-   * cluster.
+   * Required. The Azure Resource Manager (ARM) ID of the VNet associated with
+   * your cluster.
    * All components in the cluster (i.e. control plane and node pools) run on a
    * single VNet.
    * Example:
@@ -105,8 +105,8 @@ public java.lang.String getVirtualNetworkId() {
    *
    *
    * 
-   * Required. The Azure Resource Manager (ARM) ID of the VNet associated with your
-   * cluster.
+   * Required. The Azure Resource Manager (ARM) ID of the VNet associated with
+   * your cluster.
    * All components in the cluster (i.e. control plane and node pools) run on a
    * single VNet.
    * Example:
@@ -303,8 +303,8 @@ public com.google.protobuf.ByteString getServiceAddressCidrBlocksBytes(int index
    *
    *
    * 
-   * Optional. The ARM ID of the subnet where Kubernetes private service type load
-   * balancers are deployed. When unspecified, it defaults to
+   * Optional. The ARM ID of the subnet where Kubernetes private service type
+   * load balancers are deployed. When unspecified, it defaults to
    * AzureControlPlane.subnet_id.
    * Example:
    * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456"
@@ -331,8 +331,8 @@ public java.lang.String getServiceLoadBalancerSubnetId() {
    *
    *
    * 
-   * Optional. The ARM ID of the subnet where Kubernetes private service type load
-   * balancers are deployed. When unspecified, it defaults to
+   * Optional. The ARM ID of the subnet where Kubernetes private service type
+   * load balancers are deployed. When unspecified, it defaults to
    * AzureControlPlane.subnet_id.
    * Example:
    * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456"
@@ -802,8 +802,8 @@ public Builder mergeFrom(
      *
      *
      * 
-     * Required. The Azure Resource Manager (ARM) ID of the VNet associated with your
-     * cluster.
+     * Required. The Azure Resource Manager (ARM) ID of the VNet associated with
+     * your cluster.
      * All components in the cluster (i.e. control plane and node pools) run on a
      * single VNet.
      * Example:
@@ -830,8 +830,8 @@ public java.lang.String getVirtualNetworkId() {
      *
      *
      * 
-     * Required. The Azure Resource Manager (ARM) ID of the VNet associated with your
-     * cluster.
+     * Required. The Azure Resource Manager (ARM) ID of the VNet associated with
+     * your cluster.
      * All components in the cluster (i.e. control plane and node pools) run on a
      * single VNet.
      * Example:
@@ -858,8 +858,8 @@ public com.google.protobuf.ByteString getVirtualNetworkIdBytes() {
      *
      *
      * 
-     * Required. The Azure Resource Manager (ARM) ID of the VNet associated with your
-     * cluster.
+     * Required. The Azure Resource Manager (ARM) ID of the VNet associated with
+     * your cluster.
      * All components in the cluster (i.e. control plane and node pools) run on a
      * single VNet.
      * Example:
@@ -885,8 +885,8 @@ public Builder setVirtualNetworkId(java.lang.String value) {
      *
      *
      * 
-     * Required. The Azure Resource Manager (ARM) ID of the VNet associated with your
-     * cluster.
+     * Required. The Azure Resource Manager (ARM) ID of the VNet associated with
+     * your cluster.
      * All components in the cluster (i.e. control plane and node pools) run on a
      * single VNet.
      * Example:
@@ -908,8 +908,8 @@ public Builder clearVirtualNetworkId() {
      *
      *
      * 
-     * Required. The Azure Resource Manager (ARM) ID of the VNet associated with your
-     * cluster.
+     * Required. The Azure Resource Manager (ARM) ID of the VNet associated with
+     * your cluster.
      * All components in the cluster (i.e. control plane and node pools) run on a
      * single VNet.
      * Example:
@@ -1374,8 +1374,8 @@ public Builder addServiceAddressCidrBlocksBytes(com.google.protobuf.ByteString v
      *
      *
      * 
-     * Optional. The ARM ID of the subnet where Kubernetes private service type load
-     * balancers are deployed. When unspecified, it defaults to
+     * Optional. The ARM ID of the subnet where Kubernetes private service type
+     * load balancers are deployed. When unspecified, it defaults to
      * AzureControlPlane.subnet_id.
      * Example:
      * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456"
@@ -1401,8 +1401,8 @@ public java.lang.String getServiceLoadBalancerSubnetId() {
      *
      *
      * 
-     * Optional. The ARM ID of the subnet where Kubernetes private service type load
-     * balancers are deployed. When unspecified, it defaults to
+     * Optional. The ARM ID of the subnet where Kubernetes private service type
+     * load balancers are deployed. When unspecified, it defaults to
      * AzureControlPlane.subnet_id.
      * Example:
      * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456"
@@ -1428,8 +1428,8 @@ public com.google.protobuf.ByteString getServiceLoadBalancerSubnetIdBytes() {
      *
      *
      * 
-     * Optional. The ARM ID of the subnet where Kubernetes private service type load
-     * balancers are deployed. When unspecified, it defaults to
+     * Optional. The ARM ID of the subnet where Kubernetes private service type
+     * load balancers are deployed. When unspecified, it defaults to
      * AzureControlPlane.subnet_id.
      * Example:
      * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456"
@@ -1454,8 +1454,8 @@ public Builder setServiceLoadBalancerSubnetId(java.lang.String value) {
      *
      *
      * 
-     * Optional. The ARM ID of the subnet where Kubernetes private service type load
-     * balancers are deployed. When unspecified, it defaults to
+     * Optional. The ARM ID of the subnet where Kubernetes private service type
+     * load balancers are deployed. When unspecified, it defaults to
      * AzureControlPlane.subnet_id.
      * Example:
      * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456"
@@ -1476,8 +1476,8 @@ public Builder clearServiceLoadBalancerSubnetId() {
      *
      *
      * 
-     * Optional. The ARM ID of the subnet where Kubernetes private service type load
-     * balancers are deployed. When unspecified, it defaults to
+     * Optional. The ARM ID of the subnet where Kubernetes private service type
+     * load balancers are deployed. When unspecified, it defaults to
      * AzureControlPlane.subnet_id.
      * Example:
      * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456"
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterNetworkingOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterNetworkingOrBuilder.java
index 1c879d7eb2ce..84b389fb7422 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterNetworkingOrBuilder.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterNetworkingOrBuilder.java
@@ -27,8 +27,8 @@ public interface AzureClusterNetworkingOrBuilder
    *
    *
    * 
-   * Required. The Azure Resource Manager (ARM) ID of the VNet associated with your
-   * cluster.
+   * Required. The Azure Resource Manager (ARM) ID of the VNet associated with
+   * your cluster.
    * All components in the cluster (i.e. control plane and node pools) run on a
    * single VNet.
    * Example:
@@ -45,8 +45,8 @@ public interface AzureClusterNetworkingOrBuilder
    *
    *
    * 
-   * Required. The Azure Resource Manager (ARM) ID of the VNet associated with your
-   * cluster.
+   * Required. The Azure Resource Manager (ARM) ID of the VNet associated with
+   * your cluster.
    * All components in the cluster (i.e. control plane and node pools) run on a
    * single VNet.
    * Example:
@@ -210,8 +210,8 @@ public interface AzureClusterNetworkingOrBuilder
    *
    *
    * 
-   * Optional. The ARM ID of the subnet where Kubernetes private service type load
-   * balancers are deployed. When unspecified, it defaults to
+   * Optional. The ARM ID of the subnet where Kubernetes private service type
+   * load balancers are deployed. When unspecified, it defaults to
    * AzureControlPlane.subnet_id.
    * Example:
    * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456"
@@ -227,8 +227,8 @@ public interface AzureClusterNetworkingOrBuilder
    *
    *
    * 
-   * Optional. The ARM ID of the subnet where Kubernetes private service type load
-   * balancers are deployed. When unspecified, it defaults to
+   * Optional. The ARM ID of the subnet where Kubernetes private service type
+   * load balancers are deployed. When unspecified, it defaults to
    * AzureControlPlane.subnet_id.
    * Example:
    * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456"
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterOrBuilder.java
index 8c3233d8b29c..977396a80b98 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterOrBuilder.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterOrBuilder.java
@@ -120,8 +120,8 @@ public interface AzureClusterOrBuilder
    *
    *
    * 
-   * Required. The ARM ID of the resource group where the cluster resources are deployed.
-   * For example:
+   * Required. The ARM ID of the resource group where the cluster resources are
+   * deployed. For example:
    * `/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>`
    * 
* @@ -134,8 +134,8 @@ public interface AzureClusterOrBuilder * * *
-   * Required. The ARM ID of the resource group where the cluster resources are deployed.
-   * For example:
+   * Required. The ARM ID of the resource group where the cluster resources are
+   * deployed. For example:
    * `/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>`
    * 
* @@ -149,8 +149,10 @@ public interface AzureClusterOrBuilder * * *
-   * Required. Name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains authentication configuration for
-   * how the Anthos Multi-Cloud API connects to Azure APIs.
+   * Required. Name of the
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains
+   * authentication configuration for how the Anthos Multi-Cloud API connects to
+   * Azure APIs.
    * The `AzureClient` resource must reside on the same GCP project and region
    * as the `AzureCluster`.
    * `AzureClient` names are formatted as
@@ -168,8 +170,10 @@ public interface AzureClusterOrBuilder
    *
    *
    * 
-   * Required. Name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains authentication configuration for
-   * how the Anthos Multi-Cloud API connects to Azure APIs.
+   * Required. Name of the
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains
+   * authentication configuration for how the Anthos Multi-Cloud API connects to
+   * Azure APIs.
    * The `AzureClient` resource must reside on the same GCP project and region
    * as the `AzureCluster`.
    * `AzureClient` names are formatted as
@@ -676,11 +680,11 @@ java.lang.String getAnnotationsOrDefault(
    *
    *
    * 
-   * Optional. Fleet configuration.
+   * Required. Fleet configuration.
    * 
* * - * .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the fleet field is set. @@ -690,11 +694,11 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Optional. Fleet configuration.
+   * Required. Fleet configuration.
    * 
* * - * .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = REQUIRED]; * * * @return The fleet. @@ -704,11 +708,11 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Optional. Fleet configuration.
+   * Required. Fleet configuration.
    * 
* * - * .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkemulticloud.v1.Fleet fleet = 20 [(.google.api.field_behavior) = REQUIRED]; * */ com.google.cloud.gkemulticloud.v1.FleetOrBuilder getFleetOrBuilder(); @@ -717,7 +721,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Output only. Mananged Azure resources for this cluster.
+   * Output only. Managed Azure resources for this cluster.
    * 
* * @@ -731,7 +735,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Output only. Mananged Azure resources for this cluster.
+   * Output only. Managed Azure resources for this cluster.
    * 
* * @@ -745,7 +749,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Output only. Mananged Azure resources for this cluster.
+   * Output only. Managed Azure resources for this cluster.
    * 
* * @@ -794,4 +798,107 @@ java.lang.String getAnnotationsOrDefault( * */ com.google.cloud.gkemulticloud.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); + + /** + * + * + *
+   * Output only. A set of errors found in the cluster.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getErrorsList(); + /** + * + * + *
+   * Output only. A set of errors found in the cluster.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkemulticloud.v1.AzureClusterError getErrors(int index); + /** + * + * + *
+   * Output only. A set of errors found in the cluster.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getErrorsCount(); + /** + * + * + *
+   * Output only. A set of errors found in the cluster.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getErrorsOrBuilderList(); + /** + * + * + *
+   * Output only. A set of errors found in the cluster.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureClusterError errors = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkemulticloud.v1.AzureClusterErrorOrBuilder getErrorsOrBuilder(int index); + + /** + * + * + *
+   * Optional. Monitoring configuration for this cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the monitoringConfig field is set. + */ + boolean hasMonitoringConfig(); + /** + * + * + *
+   * Optional. Monitoring configuration for this cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The monitoringConfig. + */ + com.google.cloud.gkemulticloud.v1.MonitoringConfig getMonitoringConfig(); + /** + * + * + *
+   * Optional. Monitoring configuration for this cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.MonitoringConfig monitoring_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkemulticloud.v1.MonitoringConfigOrBuilder getMonitoringConfigOrBuilder(); } diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureConfigEncryption.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureConfigEncryption.java index 69fa51b05a87..b25401f5594e 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureConfigEncryption.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureConfigEncryption.java @@ -76,7 +76,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config data.
+   * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config
+   * data.
    * For example:
    * `/subscriptions/<subscription-id>/resourceGroups/<resource-group-id>/providers/Microsoft.KeyVault/vaults/<key-vault-id>/keys/<key-name>`
    * 
@@ -101,7 +102,8 @@ public java.lang.String getKeyId() { * * *
-   * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config data.
+   * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config
+   * data.
    * For example:
    * `/subscriptions/<subscription-id>/resourceGroups/<resource-group-id>/providers/Microsoft.KeyVault/vaults/<key-vault-id>/keys/<key-name>`
    * 
@@ -129,7 +131,8 @@ public com.google.protobuf.ByteString getKeyIdBytes() { * * *
-   * Optional. RSA key of the Azure Key Vault public key to use for encrypting the data.
+   * Optional. RSA key of the Azure Key Vault public key to use for encrypting
+   * the data.
    * This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280)
    * in ASN.1 DER form. The string must be comprised of a single PEM block of
    * type "PUBLIC KEY".
@@ -155,7 +158,8 @@ public java.lang.String getPublicKey() {
    *
    *
    * 
-   * Optional. RSA key of the Azure Key Vault public key to use for encrypting the data.
+   * Optional. RSA key of the Azure Key Vault public key to use for encrypting
+   * the data.
    * This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280)
    * in ASN.1 DER form. The string must be comprised of a single PEM block of
    * type "PUBLIC KEY".
@@ -538,7 +542,8 @@ public Builder mergeFrom(
      *
      *
      * 
-     * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config data.
+     * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config
+     * data.
      * For example:
      * `/subscriptions/<subscription-id>/resourceGroups/<resource-group-id>/providers/Microsoft.KeyVault/vaults/<key-vault-id>/keys/<key-name>`
      * 
@@ -562,7 +567,8 @@ public java.lang.String getKeyId() { * * *
-     * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config data.
+     * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config
+     * data.
      * For example:
      * `/subscriptions/<subscription-id>/resourceGroups/<resource-group-id>/providers/Microsoft.KeyVault/vaults/<key-vault-id>/keys/<key-name>`
      * 
@@ -586,7 +592,8 @@ public com.google.protobuf.ByteString getKeyIdBytes() { * * *
-     * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config data.
+     * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config
+     * data.
      * For example:
      * `/subscriptions/<subscription-id>/resourceGroups/<resource-group-id>/providers/Microsoft.KeyVault/vaults/<key-vault-id>/keys/<key-name>`
      * 
@@ -609,7 +616,8 @@ public Builder setKeyId(java.lang.String value) { * * *
-     * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config data.
+     * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config
+     * data.
      * For example:
      * `/subscriptions/<subscription-id>/resourceGroups/<resource-group-id>/providers/Microsoft.KeyVault/vaults/<key-vault-id>/keys/<key-name>`
      * 
@@ -628,7 +636,8 @@ public Builder clearKeyId() { * * *
-     * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config data.
+     * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config
+     * data.
      * For example:
      * `/subscriptions/<subscription-id>/resourceGroups/<resource-group-id>/providers/Microsoft.KeyVault/vaults/<key-vault-id>/keys/<key-name>`
      * 
@@ -654,7 +663,8 @@ public Builder setKeyIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. RSA key of the Azure Key Vault public key to use for encrypting the data.
+     * Optional. RSA key of the Azure Key Vault public key to use for encrypting
+     * the data.
      * This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280)
      * in ASN.1 DER form. The string must be comprised of a single PEM block of
      * type "PUBLIC KEY".
@@ -679,7 +689,8 @@ public java.lang.String getPublicKey() {
      *
      *
      * 
-     * Optional. RSA key of the Azure Key Vault public key to use for encrypting the data.
+     * Optional. RSA key of the Azure Key Vault public key to use for encrypting
+     * the data.
      * This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280)
      * in ASN.1 DER form. The string must be comprised of a single PEM block of
      * type "PUBLIC KEY".
@@ -704,7 +715,8 @@ public com.google.protobuf.ByteString getPublicKeyBytes() {
      *
      *
      * 
-     * Optional. RSA key of the Azure Key Vault public key to use for encrypting the data.
+     * Optional. RSA key of the Azure Key Vault public key to use for encrypting
+     * the data.
      * This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280)
      * in ASN.1 DER form. The string must be comprised of a single PEM block of
      * type "PUBLIC KEY".
@@ -728,7 +740,8 @@ public Builder setPublicKey(java.lang.String value) {
      *
      *
      * 
-     * Optional. RSA key of the Azure Key Vault public key to use for encrypting the data.
+     * Optional. RSA key of the Azure Key Vault public key to use for encrypting
+     * the data.
      * This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280)
      * in ASN.1 DER form. The string must be comprised of a single PEM block of
      * type "PUBLIC KEY".
@@ -748,7 +761,8 @@ public Builder clearPublicKey() {
      *
      *
      * 
-     * Optional. RSA key of the Azure Key Vault public key to use for encrypting the data.
+     * Optional. RSA key of the Azure Key Vault public key to use for encrypting
+     * the data.
      * This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280)
      * in ASN.1 DER form. The string must be comprised of a single PEM block of
      * type "PUBLIC KEY".
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureConfigEncryptionOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureConfigEncryptionOrBuilder.java
index 1f634e2eb0c1..87f6324be15c 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureConfigEncryptionOrBuilder.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureConfigEncryptionOrBuilder.java
@@ -27,7 +27,8 @@ public interface AzureConfigEncryptionOrBuilder
    *
    *
    * 
-   * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config data.
+   * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config
+   * data.
    * For example:
    * `/subscriptions/<subscription-id>/resourceGroups/<resource-group-id>/providers/Microsoft.KeyVault/vaults/<key-vault-id>/keys/<key-name>`
    * 
@@ -41,7 +42,8 @@ public interface AzureConfigEncryptionOrBuilder * * *
-   * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config data.
+   * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config
+   * data.
    * For example:
    * `/subscriptions/<subscription-id>/resourceGroups/<resource-group-id>/providers/Microsoft.KeyVault/vaults/<key-vault-id>/keys/<key-name>`
    * 
@@ -56,7 +58,8 @@ public interface AzureConfigEncryptionOrBuilder * * *
-   * Optional. RSA key of the Azure Key Vault public key to use for encrypting the data.
+   * Optional. RSA key of the Azure Key Vault public key to use for encrypting
+   * the data.
    * This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280)
    * in ASN.1 DER form. The string must be comprised of a single PEM block of
    * type "PUBLIC KEY".
@@ -71,7 +74,8 @@ public interface AzureConfigEncryptionOrBuilder
    *
    *
    * 
-   * Optional. RSA key of the Azure Key Vault public key to use for encrypting the data.
+   * Optional. RSA key of the Azure Key Vault public key to use for encrypting
+   * the data.
    * This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280)
    * in ASN.1 DER form. The string must be comprised of a single PEM block of
    * type "PUBLIC KEY".
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureControlPlane.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureControlPlane.java
index 5a1d4acb2b4a..9a8732f47333 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureControlPlane.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureControlPlane.java
@@ -145,8 +145,8 @@ public com.google.protobuf.ByteString getVersionBytes() {
    *
    *
    * 
-   * Optional. The ARM ID of the default subnet for the control plane. The control plane
-   * VMs are deployed in this subnet, unless
+   * Optional. The ARM ID of the default subnet for the control plane. The
+   * control plane VMs are deployed in this subnet, unless
    * `AzureControlPlane.replica_placements` is specified. This subnet will also
    * be used as default for `AzureControlPlane.endpoint_subnet_id` if
    * `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will
@@ -176,8 +176,8 @@ public java.lang.String getSubnetId() {
    *
    *
    * 
-   * Optional. The ARM ID of the default subnet for the control plane. The control plane
-   * VMs are deployed in this subnet, unless
+   * Optional. The ARM ID of the default subnet for the control plane. The
+   * control plane VMs are deployed in this subnet, unless
    * `AzureControlPlane.replica_placements` is specified. This subnet will also
    * be used as default for `AzureControlPlane.endpoint_subnet_id` if
    * `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will
@@ -632,7 +632,8 @@ public int getTagsCount() {
    *
    *
    * 
-   * Optional. A set of tags to apply to all underlying control plane Azure resources.
+   * Optional. A set of tags to apply to all underlying control plane Azure
+   * resources.
    * 
* * map<string, string> tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -654,7 +655,8 @@ public java.util.Map getTags() { * * *
-   * Optional. A set of tags to apply to all underlying control plane Azure resources.
+   * Optional. A set of tags to apply to all underlying control plane Azure
+   * resources.
    * 
* * map<string, string> tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -667,7 +669,8 @@ public java.util.Map getTagsMap() { * * *
-   * Optional. A set of tags to apply to all underlying control plane Azure resources.
+   * Optional. A set of tags to apply to all underlying control plane Azure
+   * resources.
    * 
* * map<string, string> tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -684,7 +687,8 @@ public java.lang.String getTagsOrDefault(java.lang.String key, java.lang.String * * *
-   * Optional. A set of tags to apply to all underlying control plane Azure resources.
+   * Optional. A set of tags to apply to all underlying control plane Azure
+   * resources.
    * 
* * map<string, string> tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -803,8 +807,8 @@ public com.google.cloud.gkemulticloud.v1.ReplicaPlacementOrBuilder getReplicaPla * * *
-   * Optional. The ARM ID of the subnet where the control plane load balancer is deployed.
-   * When unspecified, it defaults to AzureControlPlane.subnet_id.
+   * Optional. The ARM ID of the subnet where the control plane load balancer is
+   * deployed. When unspecified, it defaults to AzureControlPlane.subnet_id.
    * Example:
    * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123"
    * 
@@ -829,8 +833,8 @@ public java.lang.String getEndpointSubnetId() { * * *
-   * Optional. The ARM ID of the subnet where the control plane load balancer is deployed.
-   * When unspecified, it defaults to AzureControlPlane.subnet_id.
+   * Optional. The ARM ID of the subnet where the control plane load balancer is
+   * deployed. When unspecified, it defaults to AzureControlPlane.subnet_id.
    * Example:
    * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123"
    * 
@@ -1706,8 +1710,8 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. The ARM ID of the default subnet for the control plane. The control plane
-     * VMs are deployed in this subnet, unless
+     * Optional. The ARM ID of the default subnet for the control plane. The
+     * control plane VMs are deployed in this subnet, unless
      * `AzureControlPlane.replica_placements` is specified. This subnet will also
      * be used as default for `AzureControlPlane.endpoint_subnet_id` if
      * `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will
@@ -1736,8 +1740,8 @@ public java.lang.String getSubnetId() {
      *
      *
      * 
-     * Optional. The ARM ID of the default subnet for the control plane. The control plane
-     * VMs are deployed in this subnet, unless
+     * Optional. The ARM ID of the default subnet for the control plane. The
+     * control plane VMs are deployed in this subnet, unless
      * `AzureControlPlane.replica_placements` is specified. This subnet will also
      * be used as default for `AzureControlPlane.endpoint_subnet_id` if
      * `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will
@@ -1766,8 +1770,8 @@ public com.google.protobuf.ByteString getSubnetIdBytes() {
      *
      *
      * 
-     * Optional. The ARM ID of the default subnet for the control plane. The control plane
-     * VMs are deployed in this subnet, unless
+     * Optional. The ARM ID of the default subnet for the control plane. The
+     * control plane VMs are deployed in this subnet, unless
      * `AzureControlPlane.replica_placements` is specified. This subnet will also
      * be used as default for `AzureControlPlane.endpoint_subnet_id` if
      * `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will
@@ -1795,8 +1799,8 @@ public Builder setSubnetId(java.lang.String value) {
      *
      *
      * 
-     * Optional. The ARM ID of the default subnet for the control plane. The control plane
-     * VMs are deployed in this subnet, unless
+     * Optional. The ARM ID of the default subnet for the control plane. The
+     * control plane VMs are deployed in this subnet, unless
      * `AzureControlPlane.replica_placements` is specified. This subnet will also
      * be used as default for `AzureControlPlane.endpoint_subnet_id` if
      * `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will
@@ -1820,8 +1824,8 @@ public Builder clearSubnetId() {
      *
      *
      * 
-     * Optional. The ARM ID of the default subnet for the control plane. The control plane
-     * VMs are deployed in this subnet, unless
+     * Optional. The ARM ID of the default subnet for the control plane. The
+     * control plane VMs are deployed in this subnet, unless
      * `AzureControlPlane.replica_placements` is specified. This subnet will also
      * be used as default for `AzureControlPlane.endpoint_subnet_id` if
      * `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will
@@ -3284,7 +3288,8 @@ public int getTagsCount() {
      *
      *
      * 
-     * Optional. A set of tags to apply to all underlying control plane Azure resources.
+     * Optional. A set of tags to apply to all underlying control plane Azure
+     * resources.
      * 
* * map<string, string> tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -3306,7 +3311,8 @@ public java.util.Map getTags() { * * *
-     * Optional. A set of tags to apply to all underlying control plane Azure resources.
+     * Optional. A set of tags to apply to all underlying control plane Azure
+     * resources.
      * 
* * map<string, string> tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -3319,7 +3325,8 @@ public java.util.Map getTagsMap() { * * *
-     * Optional. A set of tags to apply to all underlying control plane Azure resources.
+     * Optional. A set of tags to apply to all underlying control plane Azure
+     * resources.
      * 
* * map<string, string> tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -3336,7 +3343,8 @@ public java.lang.String getTagsOrDefault(java.lang.String key, java.lang.String * * *
-     * Optional. A set of tags to apply to all underlying control plane Azure resources.
+     * Optional. A set of tags to apply to all underlying control plane Azure
+     * resources.
      * 
* * map<string, string> tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -3361,7 +3369,8 @@ public Builder clearTags() { * * *
-     * Optional. A set of tags to apply to all underlying control plane Azure resources.
+     * Optional. A set of tags to apply to all underlying control plane Azure
+     * resources.
      * 
* * map<string, string> tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -3382,7 +3391,8 @@ public java.util.Map getMutableTags() { * * *
-     * Optional. A set of tags to apply to all underlying control plane Azure resources.
+     * Optional. A set of tags to apply to all underlying control plane Azure
+     * resources.
      * 
* * map<string, string> tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -3402,7 +3412,8 @@ public Builder putTags(java.lang.String key, java.lang.String value) { * * *
-     * Optional. A set of tags to apply to all underlying control plane Azure resources.
+     * Optional. A set of tags to apply to all underlying control plane Azure
+     * resources.
      * 
* * map<string, string> tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -3870,8 +3881,8 @@ public com.google.cloud.gkemulticloud.v1.ReplicaPlacement.Builder addReplicaPlac * * *
-     * Optional. The ARM ID of the subnet where the control plane load balancer is deployed.
-     * When unspecified, it defaults to AzureControlPlane.subnet_id.
+     * Optional. The ARM ID of the subnet where the control plane load balancer is
+     * deployed. When unspecified, it defaults to AzureControlPlane.subnet_id.
      * Example:
      * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123"
      * 
@@ -3895,8 +3906,8 @@ public java.lang.String getEndpointSubnetId() { * * *
-     * Optional. The ARM ID of the subnet where the control plane load balancer is deployed.
-     * When unspecified, it defaults to AzureControlPlane.subnet_id.
+     * Optional. The ARM ID of the subnet where the control plane load balancer is
+     * deployed. When unspecified, it defaults to AzureControlPlane.subnet_id.
      * Example:
      * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123"
      * 
@@ -3920,8 +3931,8 @@ public com.google.protobuf.ByteString getEndpointSubnetIdBytes() { * * *
-     * Optional. The ARM ID of the subnet where the control plane load balancer is deployed.
-     * When unspecified, it defaults to AzureControlPlane.subnet_id.
+     * Optional. The ARM ID of the subnet where the control plane load balancer is
+     * deployed. When unspecified, it defaults to AzureControlPlane.subnet_id.
      * Example:
      * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123"
      * 
@@ -3944,8 +3955,8 @@ public Builder setEndpointSubnetId(java.lang.String value) { * * *
-     * Optional. The ARM ID of the subnet where the control plane load balancer is deployed.
-     * When unspecified, it defaults to AzureControlPlane.subnet_id.
+     * Optional. The ARM ID of the subnet where the control plane load balancer is
+     * deployed. When unspecified, it defaults to AzureControlPlane.subnet_id.
      * Example:
      * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123"
      * 
@@ -3964,8 +3975,8 @@ public Builder clearEndpointSubnetId() { * * *
-     * Optional. The ARM ID of the subnet where the control plane load balancer is deployed.
-     * When unspecified, it defaults to AzureControlPlane.subnet_id.
+     * Optional. The ARM ID of the subnet where the control plane load balancer is
+     * deployed. When unspecified, it defaults to AzureControlPlane.subnet_id.
      * Example:
      * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123"
      * 
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureControlPlaneOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureControlPlaneOrBuilder.java index 70de8950c51e..f65b6f087e74 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureControlPlaneOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureControlPlaneOrBuilder.java @@ -60,8 +60,8 @@ public interface AzureControlPlaneOrBuilder * * *
-   * Optional. The ARM ID of the default subnet for the control plane. The control plane
-   * VMs are deployed in this subnet, unless
+   * Optional. The ARM ID of the default subnet for the control plane. The
+   * control plane VMs are deployed in this subnet, unless
    * `AzureControlPlane.replica_placements` is specified. This subnet will also
    * be used as default for `AzureControlPlane.endpoint_subnet_id` if
    * `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will
@@ -80,8 +80,8 @@ public interface AzureControlPlaneOrBuilder
    *
    *
    * 
-   * Optional. The ARM ID of the default subnet for the control plane. The control plane
-   * VMs are deployed in this subnet, unless
+   * Optional. The ARM ID of the default subnet for the control plane. The
+   * control plane VMs are deployed in this subnet, unless
    * `AzureControlPlane.replica_placements` is specified. This subnet will also
    * be used as default for `AzureControlPlane.endpoint_subnet_id` if
    * `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will
@@ -397,7 +397,8 @@ public interface AzureControlPlaneOrBuilder
    *
    *
    * 
-   * Optional. A set of tags to apply to all underlying control plane Azure resources.
+   * Optional. A set of tags to apply to all underlying control plane Azure
+   * resources.
    * 
* * map<string, string> tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -407,7 +408,8 @@ public interface AzureControlPlaneOrBuilder * * *
-   * Optional. A set of tags to apply to all underlying control plane Azure resources.
+   * Optional. A set of tags to apply to all underlying control plane Azure
+   * resources.
    * 
* * map<string, string> tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -420,7 +422,8 @@ public interface AzureControlPlaneOrBuilder * * *
-   * Optional. A set of tags to apply to all underlying control plane Azure resources.
+   * Optional. A set of tags to apply to all underlying control plane Azure
+   * resources.
    * 
* * map<string, string> tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -430,7 +433,8 @@ public interface AzureControlPlaneOrBuilder * * *
-   * Optional. A set of tags to apply to all underlying control plane Azure resources.
+   * Optional. A set of tags to apply to all underlying control plane Azure
+   * resources.
    * 
* * map<string, string> tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -445,7 +449,8 @@ java.lang.String getTagsOrDefault( * * *
-   * Optional. A set of tags to apply to all underlying control plane Azure resources.
+   * Optional. A set of tags to apply to all underlying control plane Azure
+   * resources.
    * 
* * map<string, string> tags = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -534,8 +539,8 @@ com.google.cloud.gkemulticloud.v1.ReplicaPlacementOrBuilder getReplicaPlacements * * *
-   * Optional. The ARM ID of the subnet where the control plane load balancer is deployed.
-   * When unspecified, it defaults to AzureControlPlane.subnet_id.
+   * Optional. The ARM ID of the subnet where the control plane load balancer is
+   * deployed. When unspecified, it defaults to AzureControlPlane.subnet_id.
    * Example:
    * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123"
    * 
@@ -549,8 +554,8 @@ com.google.cloud.gkemulticloud.v1.ReplicaPlacementOrBuilder getReplicaPlacements * * *
-   * Optional. The ARM ID of the subnet where the control plane load balancer is deployed.
-   * When unspecified, it defaults to AzureControlPlane.subnet_id.
+   * Optional. The ARM ID of the subnet where the control plane load balancer is
+   * deployed. When unspecified, it defaults to AzureControlPlane.subnet_id.
    * Example:
    * "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123"
    * 
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodeConfig.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodeConfig.java index 9e7c65dc4ac1..fd26e3f98942 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodeConfig.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodeConfig.java @@ -227,8 +227,8 @@ public int getTagsCount() { * * *
-   * Optional. A set of tags to apply to all underlying Azure resources for this node
-   * pool. This currently only includes Virtual Machine Scale Sets.
+   * Optional. A set of tags to apply to all underlying Azure resources for this
+   * node pool. This currently only includes Virtual Machine Scale Sets.
    * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
    * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
    * 255 Unicode characters.
@@ -253,8 +253,8 @@ public java.util.Map getTags() {
    *
    *
    * 
-   * Optional. A set of tags to apply to all underlying Azure resources for this node
-   * pool. This currently only includes Virtual Machine Scale Sets.
+   * Optional. A set of tags to apply to all underlying Azure resources for this
+   * node pool. This currently only includes Virtual Machine Scale Sets.
    * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
    * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
    * 255 Unicode characters.
@@ -270,8 +270,8 @@ public java.util.Map getTagsMap() {
    *
    *
    * 
-   * Optional. A set of tags to apply to all underlying Azure resources for this node
-   * pool. This currently only includes Virtual Machine Scale Sets.
+   * Optional. A set of tags to apply to all underlying Azure resources for this
+   * node pool. This currently only includes Virtual Machine Scale Sets.
    * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
    * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
    * 255 Unicode characters.
@@ -291,8 +291,8 @@ public java.lang.String getTagsOrDefault(java.lang.String key, java.lang.String
    *
    *
    * 
-   * Optional. A set of tags to apply to all underlying Azure resources for this node
-   * pool. This currently only includes Virtual Machine Scale Sets.
+   * Optional. A set of tags to apply to all underlying Azure resources for this
+   * node pool. This currently only includes Virtual Machine Scale Sets.
    * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
    * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
    * 255 Unicode characters.
@@ -1732,8 +1732,8 @@ public int getTagsCount() {
      *
      *
      * 
-     * Optional. A set of tags to apply to all underlying Azure resources for this node
-     * pool. This currently only includes Virtual Machine Scale Sets.
+     * Optional. A set of tags to apply to all underlying Azure resources for this
+     * node pool. This currently only includes Virtual Machine Scale Sets.
      * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
      * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
      * 255 Unicode characters.
@@ -1758,8 +1758,8 @@ public java.util.Map getTags() {
      *
      *
      * 
-     * Optional. A set of tags to apply to all underlying Azure resources for this node
-     * pool. This currently only includes Virtual Machine Scale Sets.
+     * Optional. A set of tags to apply to all underlying Azure resources for this
+     * node pool. This currently only includes Virtual Machine Scale Sets.
      * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
      * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
      * 255 Unicode characters.
@@ -1775,8 +1775,8 @@ public java.util.Map getTagsMap() {
      *
      *
      * 
-     * Optional. A set of tags to apply to all underlying Azure resources for this node
-     * pool. This currently only includes Virtual Machine Scale Sets.
+     * Optional. A set of tags to apply to all underlying Azure resources for this
+     * node pool. This currently only includes Virtual Machine Scale Sets.
      * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
      * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
      * 255 Unicode characters.
@@ -1796,8 +1796,8 @@ public java.lang.String getTagsOrDefault(java.lang.String key, java.lang.String
      *
      *
      * 
-     * Optional. A set of tags to apply to all underlying Azure resources for this node
-     * pool. This currently only includes Virtual Machine Scale Sets.
+     * Optional. A set of tags to apply to all underlying Azure resources for this
+     * node pool. This currently only includes Virtual Machine Scale Sets.
      * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
      * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
      * 255 Unicode characters.
@@ -1825,8 +1825,8 @@ public Builder clearTags() {
      *
      *
      * 
-     * Optional. A set of tags to apply to all underlying Azure resources for this node
-     * pool. This currently only includes Virtual Machine Scale Sets.
+     * Optional. A set of tags to apply to all underlying Azure resources for this
+     * node pool. This currently only includes Virtual Machine Scale Sets.
      * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
      * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
      * 255 Unicode characters.
@@ -1850,8 +1850,8 @@ public java.util.Map getMutableTags() {
      *
      *
      * 
-     * Optional. A set of tags to apply to all underlying Azure resources for this node
-     * pool. This currently only includes Virtual Machine Scale Sets.
+     * Optional. A set of tags to apply to all underlying Azure resources for this
+     * node pool. This currently only includes Virtual Machine Scale Sets.
      * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
      * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
      * 255 Unicode characters.
@@ -1874,8 +1874,8 @@ public Builder putTags(java.lang.String key, java.lang.String value) {
      *
      *
      * 
-     * Optional. A set of tags to apply to all underlying Azure resources for this node
-     * pool. This currently only includes Virtual Machine Scale Sets.
+     * Optional. A set of tags to apply to all underlying Azure resources for this
+     * node pool. This currently only includes Virtual Machine Scale Sets.
      * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
      * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
      * 255 Unicode characters.
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodeConfigOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodeConfigOrBuilder.java
index ec726c5116be..1c64edb57a18 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodeConfigOrBuilder.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodeConfigOrBuilder.java
@@ -105,8 +105,8 @@ public interface AzureNodeConfigOrBuilder
    *
    *
    * 
-   * Optional. A set of tags to apply to all underlying Azure resources for this node
-   * pool. This currently only includes Virtual Machine Scale Sets.
+   * Optional. A set of tags to apply to all underlying Azure resources for this
+   * node pool. This currently only includes Virtual Machine Scale Sets.
    * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
    * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
    * 255 Unicode characters.
@@ -119,8 +119,8 @@ public interface AzureNodeConfigOrBuilder
    *
    *
    * 
-   * Optional. A set of tags to apply to all underlying Azure resources for this node
-   * pool. This currently only includes Virtual Machine Scale Sets.
+   * Optional. A set of tags to apply to all underlying Azure resources for this
+   * node pool. This currently only includes Virtual Machine Scale Sets.
    * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
    * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
    * 255 Unicode characters.
@@ -136,8 +136,8 @@ public interface AzureNodeConfigOrBuilder
    *
    *
    * 
-   * Optional. A set of tags to apply to all underlying Azure resources for this node
-   * pool. This currently only includes Virtual Machine Scale Sets.
+   * Optional. A set of tags to apply to all underlying Azure resources for this
+   * node pool. This currently only includes Virtual Machine Scale Sets.
    * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
    * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
    * 255 Unicode characters.
@@ -150,8 +150,8 @@ public interface AzureNodeConfigOrBuilder
    *
    *
    * 
-   * Optional. A set of tags to apply to all underlying Azure resources for this node
-   * pool. This currently only includes Virtual Machine Scale Sets.
+   * Optional. A set of tags to apply to all underlying Azure resources for this
+   * node pool. This currently only includes Virtual Machine Scale Sets.
    * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
    * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
    * 255 Unicode characters.
@@ -169,8 +169,8 @@ java.lang.String getTagsOrDefault(
    *
    *
    * 
-   * Optional. A set of tags to apply to all underlying Azure resources for this node
-   * pool. This currently only includes Virtual Machine Scale Sets.
+   * Optional. A set of tags to apply to all underlying Azure resources for this
+   * node pool. This currently only includes Virtual Machine Scale Sets.
    * Specify at most 50 pairs containing alphanumerics, spaces, and symbols
    * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to
    * 255 Unicode characters.
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePool.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePool.java
index fbe5eadf5997..1faaea87dd39 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePool.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePool.java
@@ -45,6 +45,7 @@ private AzureNodePool() {
     uid_ = "";
     etag_ = "";
     azureAvailabilityZone_ = "";
+    errors_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
@@ -398,7 +399,8 @@ public com.google.protobuf.ByteString getNameBytes() {
    *
    *
    * 
-   * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this node pool.
+   * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this
+   * node pool.
    * 
* * string version = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -421,7 +423,8 @@ public java.lang.String getVersion() { * * *
-   * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this node pool.
+   * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this
+   * node pool.
    * 
* * string version = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -501,8 +504,8 @@ public com.google.cloud.gkemulticloud.v1.AzureNodeConfigOrBuilder getConfigOrBui * * *
-   * Required. The ARM ID of the subnet where the node pool VMs run. Make sure it's a
-   * subnet under the virtual network in the cluster configuration.
+   * Required. The ARM ID of the subnet where the node pool VMs run. Make sure
+   * it's a subnet under the virtual network in the cluster configuration.
    * 
* * string subnet_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -525,8 +528,8 @@ public java.lang.String getSubnetId() { * * *
-   * Required. The ARM ID of the subnet where the node pool VMs run. Make sure it's a
-   * subnet under the virtual network in the cluster configuration.
+   * Required. The ARM ID of the subnet where the node pool VMs run. Make sure
+   * it's a subnet under the virtual network in the cluster configuration.
    * 
* * string subnet_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1105,6 +1108,86 @@ public com.google.protobuf.ByteString getAzureAvailabilityZoneBytes() { } } + public static final int ERRORS_FIELD_NUMBER = 29; + private java.util.List errors_; + /** + * + * + *
+   * Output only. A set of errors found in the node pool.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getErrorsList() { + return errors_; + } + /** + * + * + *
+   * Output only. A set of errors found in the node pool.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getErrorsOrBuilderList() { + return errors_; + } + /** + * + * + *
+   * Output only. A set of errors found in the node pool.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getErrorsCount() { + return errors_.size(); + } + /** + * + * + *
+   * Output only. A set of errors found in the node pool.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AzureNodePoolError getErrors(int index) { + return errors_.get(index); + } + /** + * + * + *
+   * Output only. A set of errors found in the node pool.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AzureNodePoolErrorOrBuilder getErrorsOrBuilder( + int index) { + return errors_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1161,6 +1244,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(azureAvailabilityZone_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 23, azureAvailabilityZone_); } + for (int i = 0; i < errors_.size(); i++) { + output.writeMessage(29, errors_.get(i)); + } getUnknownFields().writeTo(output); } @@ -1220,6 +1306,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(azureAvailabilityZone_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, azureAvailabilityZone_); } + for (int i = 0; i < errors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, errors_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1265,6 +1354,7 @@ public boolean equals(final java.lang.Object obj) { if (!getMaxPodsConstraint().equals(other.getMaxPodsConstraint())) return false; } if (!getAzureAvailabilityZone().equals(other.getAzureAvailabilityZone())) return false; + if (!getErrorsList().equals(other.getErrorsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1316,6 +1406,10 @@ public int hashCode() { } hash = (37 * hash) + AZURE_AVAILABILITY_ZONE_FIELD_NUMBER; hash = (53 * hash) + getAzureAvailabilityZone().hashCode(); + if (getErrorsCount() > 0) { + hash = (37 * hash) + ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getErrorsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1521,6 +1615,13 @@ public Builder clear() { } azureAvailabilityZone_ = ""; + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + } else { + errors_ = null; + errorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -1584,6 +1685,15 @@ public com.google.cloud.gkemulticloud.v1.AzureNodePool buildPartial() { result.maxPodsConstraint_ = maxPodsConstraintBuilder_.build(); } result.azureAvailabilityZone_ = azureAvailabilityZone_; + if (errorsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + errors_ = java.util.Collections.unmodifiableList(errors_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.errors_ = errors_; + } else { + result.errors_ = errorsBuilder_.build(); + } onBuilt(); return result; } @@ -1680,6 +1790,33 @@ public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.AzureNodePool other) azureAvailabilityZone_ = other.azureAvailabilityZone_; onChanged(); } + if (errorsBuilder_ == null) { + if (!other.errors_.isEmpty()) { + if (errors_.isEmpty()) { + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureErrorsIsMutable(); + errors_.addAll(other.errors_); + } + onChanged(); + } + } else { + if (!other.errors_.isEmpty()) { + if (errorsBuilder_.isEmpty()) { + errorsBuilder_.dispose(); + errorsBuilder_ = null; + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000002); + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorsFieldBuilder() + : null; + } else { + errorsBuilder_.addAllMessages(other.errors_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1796,6 +1933,20 @@ public Builder mergeFrom( break; } // case 186 + case 234: + { + com.google.cloud.gkemulticloud.v1.AzureNodePoolError m = + input.readMessage( + com.google.cloud.gkemulticloud.v1.AzureNodePoolError.parser(), + extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.addMessage(m); + } + break; + } // case 234 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1946,7 +2097,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this node pool.
+     * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this
+     * node pool.
      * 
* * string version = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1968,7 +2120,8 @@ public java.lang.String getVersion() { * * *
-     * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this node pool.
+     * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this
+     * node pool.
      * 
* * string version = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1990,7 +2143,8 @@ public com.google.protobuf.ByteString getVersionBytes() { * * *
-     * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this node pool.
+     * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this
+     * node pool.
      * 
* * string version = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -2011,7 +2165,8 @@ public Builder setVersion(java.lang.String value) { * * *
-     * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this node pool.
+     * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this
+     * node pool.
      * 
* * string version = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -2028,7 +2183,8 @@ public Builder clearVersion() { * * *
-     * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this node pool.
+     * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this
+     * node pool.
      * 
* * string version = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -2256,8 +2412,8 @@ public com.google.cloud.gkemulticloud.v1.AzureNodeConfigOrBuilder getConfigOrBui * * *
-     * Required. The ARM ID of the subnet where the node pool VMs run. Make sure it's a
-     * subnet under the virtual network in the cluster configuration.
+     * Required. The ARM ID of the subnet where the node pool VMs run. Make sure
+     * it's a subnet under the virtual network in the cluster configuration.
      * 
* * string subnet_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -2279,8 +2435,8 @@ public java.lang.String getSubnetId() { * * *
-     * Required. The ARM ID of the subnet where the node pool VMs run. Make sure it's a
-     * subnet under the virtual network in the cluster configuration.
+     * Required. The ARM ID of the subnet where the node pool VMs run. Make sure
+     * it's a subnet under the virtual network in the cluster configuration.
      * 
* * string subnet_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -2302,8 +2458,8 @@ public com.google.protobuf.ByteString getSubnetIdBytes() { * * *
-     * Required. The ARM ID of the subnet where the node pool VMs run. Make sure it's a
-     * subnet under the virtual network in the cluster configuration.
+     * Required. The ARM ID of the subnet where the node pool VMs run. Make sure
+     * it's a subnet under the virtual network in the cluster configuration.
      * 
* * string subnet_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -2324,8 +2480,8 @@ public Builder setSubnetId(java.lang.String value) { * * *
-     * Required. The ARM ID of the subnet where the node pool VMs run. Make sure it's a
-     * subnet under the virtual network in the cluster configuration.
+     * Required. The ARM ID of the subnet where the node pool VMs run. Make sure
+     * it's a subnet under the virtual network in the cluster configuration.
      * 
* * string subnet_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -2342,8 +2498,8 @@ public Builder clearSubnetId() { * * *
-     * Required. The ARM ID of the subnet where the node pool VMs run. Make sure it's a
-     * subnet under the virtual network in the cluster configuration.
+     * Required. The ARM ID of the subnet where the node pool VMs run. Make sure
+     * it's a subnet under the virtual network in the cluster configuration.
      * 
* * string subnet_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -3901,6 +4057,399 @@ public Builder setAzureAvailabilityZoneBytes(com.google.protobuf.ByteString valu return this; } + private java.util.List errors_ = + java.util.Collections.emptyList(); + + private void ensureErrorsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + errors_ = + new java.util.ArrayList(errors_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AzureNodePoolError, + com.google.cloud.gkemulticloud.v1.AzureNodePoolError.Builder, + com.google.cloud.gkemulticloud.v1.AzureNodePoolErrorOrBuilder> + errorsBuilder_; + + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getErrorsList() { + if (errorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(errors_); + } else { + return errorsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getErrorsCount() { + if (errorsBuilder_ == null) { + return errors_.size(); + } else { + return errorsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkemulticloud.v1.AzureNodePoolError getErrors(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setErrors( + int index, com.google.cloud.gkemulticloud.v1.AzureNodePoolError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.set(index, value); + onChanged(); + } else { + errorsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setErrors( + int index, com.google.cloud.gkemulticloud.v1.AzureNodePoolError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.set(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors(com.google.cloud.gkemulticloud.v1.AzureNodePoolError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(value); + onChanged(); + } else { + errorsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors( + int index, com.google.cloud.gkemulticloud.v1.AzureNodePoolError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(index, value); + onChanged(); + } else { + errorsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors( + com.google.cloud.gkemulticloud.v1.AzureNodePoolError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors( + int index, com.google.cloud.gkemulticloud.v1.AzureNodePoolError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllErrors( + java.lang.Iterable values) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); + onChanged(); + } else { + errorsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearErrors() { + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + errorsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeErrors(int index) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.remove(index); + onChanged(); + } else { + errorsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkemulticloud.v1.AzureNodePoolError.Builder getErrorsBuilder( + int index) { + return getErrorsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkemulticloud.v1.AzureNodePoolErrorOrBuilder getErrorsOrBuilder( + int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getErrorsOrBuilderList() { + if (errorsBuilder_ != null) { + return errorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errors_); + } + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkemulticloud.v1.AzureNodePoolError.Builder addErrorsBuilder() { + return getErrorsFieldBuilder() + .addBuilder(com.google.cloud.gkemulticloud.v1.AzureNodePoolError.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkemulticloud.v1.AzureNodePoolError.Builder addErrorsBuilder( + int index) { + return getErrorsFieldBuilder() + .addBuilder( + index, com.google.cloud.gkemulticloud.v1.AzureNodePoolError.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. A set of errors found in the node pool.
+     * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getErrorsBuilderList() { + return getErrorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AzureNodePoolError, + com.google.cloud.gkemulticloud.v1.AzureNodePoolError.Builder, + com.google.cloud.gkemulticloud.v1.AzureNodePoolErrorOrBuilder> + getErrorsFieldBuilder() { + if (errorsBuilder_ == null) { + errorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AzureNodePoolError, + com.google.cloud.gkemulticloud.v1.AzureNodePoolError.Builder, + com.google.cloud.gkemulticloud.v1.AzureNodePoolErrorOrBuilder>( + errors_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + errors_ = null; + } + return errorsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolAutoscaling.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolAutoscaling.java index 533e5663d2c2..07700560aea4 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolAutoscaling.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolAutoscaling.java @@ -73,8 +73,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Minimum number of nodes in the node pool. Must be greater than or equal to
-   * 1 and less than or equal to max_node_count.
+   * Required. Minimum number of nodes in the node pool. Must be greater than or
+   * equal to 1 and less than or equal to max_node_count.
    * 
* * int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -92,8 +92,8 @@ public int getMinNodeCount() { * * *
-   * Required. Maximum number of nodes in the node pool. Must be greater than or equal to
-   * min_node_count and less than or equal to 50.
+   * Required. Maximum number of nodes in the node pool. Must be greater than or
+   * equal to min_node_count and less than or equal to 50.
    * 
* * int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -463,8 +463,8 @@ public Builder mergeFrom( * * *
-     * Required. Minimum number of nodes in the node pool. Must be greater than or equal to
-     * 1 and less than or equal to max_node_count.
+     * Required. Minimum number of nodes in the node pool. Must be greater than or
+     * equal to 1 and less than or equal to max_node_count.
      * 
* * int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -479,8 +479,8 @@ public int getMinNodeCount() { * * *
-     * Required. Minimum number of nodes in the node pool. Must be greater than or equal to
-     * 1 and less than or equal to max_node_count.
+     * Required. Minimum number of nodes in the node pool. Must be greater than or
+     * equal to 1 and less than or equal to max_node_count.
      * 
* * int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -498,8 +498,8 @@ public Builder setMinNodeCount(int value) { * * *
-     * Required. Minimum number of nodes in the node pool. Must be greater than or equal to
-     * 1 and less than or equal to max_node_count.
+     * Required. Minimum number of nodes in the node pool. Must be greater than or
+     * equal to 1 and less than or equal to max_node_count.
      * 
* * int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -518,8 +518,8 @@ public Builder clearMinNodeCount() { * * *
-     * Required. Maximum number of nodes in the node pool. Must be greater than or equal to
-     * min_node_count and less than or equal to 50.
+     * Required. Maximum number of nodes in the node pool. Must be greater than or
+     * equal to min_node_count and less than or equal to 50.
      * 
* * int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -534,8 +534,8 @@ public int getMaxNodeCount() { * * *
-     * Required. Maximum number of nodes in the node pool. Must be greater than or equal to
-     * min_node_count and less than or equal to 50.
+     * Required. Maximum number of nodes in the node pool. Must be greater than or
+     * equal to min_node_count and less than or equal to 50.
      * 
* * int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -553,8 +553,8 @@ public Builder setMaxNodeCount(int value) { * * *
-     * Required. Maximum number of nodes in the node pool. Must be greater than or equal to
-     * min_node_count and less than or equal to 50.
+     * Required. Maximum number of nodes in the node pool. Must be greater than or
+     * equal to min_node_count and less than or equal to 50.
      * 
* * int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolAutoscalingOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolAutoscalingOrBuilder.java index a0481fc31930..3facd8f1f3b5 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolAutoscalingOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolAutoscalingOrBuilder.java @@ -27,8 +27,8 @@ public interface AzureNodePoolAutoscalingOrBuilder * * *
-   * Required. Minimum number of nodes in the node pool. Must be greater than or equal to
-   * 1 and less than or equal to max_node_count.
+   * Required. Minimum number of nodes in the node pool. Must be greater than or
+   * equal to 1 and less than or equal to max_node_count.
    * 
* * int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -41,8 +41,8 @@ public interface AzureNodePoolAutoscalingOrBuilder * * *
-   * Required. Maximum number of nodes in the node pool. Must be greater than or equal to
-   * min_node_count and less than or equal to 50.
+   * Required. Maximum number of nodes in the node pool. Must be greater than or
+   * equal to min_node_count and less than or equal to 50.
    * 
* * int32 max_node_count = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolError.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolError.java new file mode 100644 index 000000000000..a27d7ee40d57 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolError.java @@ -0,0 +1,615 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/azure_resources.proto + +package com.google.cloud.gkemulticloud.v1; + +/** + * + * + *
+ * AzureNodePoolError describes errors found on Azure node pools.
+ * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.AzureNodePoolError} + */ +public final class AzureNodePoolError extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AzureNodePoolError) + AzureNodePoolErrorOrBuilder { + private static final long serialVersionUID = 0L; + // Use AzureNodePoolError.newBuilder() to construct. + private AzureNodePoolError(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AzureNodePoolError() { + message_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AzureNodePoolError(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AzureResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AzureNodePoolError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AzureResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AzureNodePoolError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.AzureNodePoolError.class, + com.google.cloud.gkemulticloud.v1.AzureNodePoolError.Builder.class); + } + + public static final int MESSAGE_FIELD_NUMBER = 1; + private volatile java.lang.Object message_; + /** + * + * + *
+   * Human-friendly description of the error.
+   * 
+ * + * string message = 1; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + * + * + *
+   * Human-friendly description of the error.
+   * 
+ * + * string message = 1; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkemulticloud.v1.AzureNodePoolError)) { + return super.equals(obj); + } + com.google.cloud.gkemulticloud.v1.AzureNodePoolError other = + (com.google.cloud.gkemulticloud.v1.AzureNodePoolError) obj; + + if (!getMessage().equals(other.getMessage())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkemulticloud.v1.AzureNodePoolError parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AzureNodePoolError parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AzureNodePoolError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AzureNodePoolError parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AzureNodePoolError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.AzureNodePoolError parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AzureNodePoolError parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AzureNodePoolError parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AzureNodePoolError parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AzureNodePoolError parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.AzureNodePoolError parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.AzureNodePoolError parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkemulticloud.v1.AzureNodePoolError prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * AzureNodePoolError describes errors found on Azure node pools.
+   * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.AzureNodePoolError} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkemulticloud.v1.AzureNodePoolError) + com.google.cloud.gkemulticloud.v1.AzureNodePoolErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AzureResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AzureNodePoolError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AzureResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AzureNodePoolError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.AzureNodePoolError.class, + com.google.cloud.gkemulticloud.v1.AzureNodePoolError.Builder.class); + } + + // Construct using com.google.cloud.gkemulticloud.v1.AzureNodePoolError.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + message_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkemulticloud.v1.AzureResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_AzureNodePoolError_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AzureNodePoolError getDefaultInstanceForType() { + return com.google.cloud.gkemulticloud.v1.AzureNodePoolError.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AzureNodePoolError build() { + com.google.cloud.gkemulticloud.v1.AzureNodePoolError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AzureNodePoolError buildPartial() { + com.google.cloud.gkemulticloud.v1.AzureNodePoolError result = + new com.google.cloud.gkemulticloud.v1.AzureNodePoolError(this); + result.message_ = message_; + 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.gkemulticloud.v1.AzureNodePoolError) { + return mergeFrom((com.google.cloud.gkemulticloud.v1.AzureNodePoolError) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.AzureNodePoolError other) { + if (other == com.google.cloud.gkemulticloud.v1.AzureNodePoolError.getDefaultInstance()) + return this; + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + 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: + { + message_ = input.readStringRequireUtf8(); + + 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 java.lang.Object message_ = ""; + /** + * + * + *
+     * Human-friendly description of the error.
+     * 
+ * + * string message = 1; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Human-friendly description of the error.
+     * 
+ * + * string message = 1; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Human-friendly description of the error.
+     * 
+ * + * string message = 1; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Human-friendly description of the error.
+     * 
+ * + * string message = 1; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + * + * + *
+     * Human-friendly description of the error.
+     * 
+ * + * string message = 1; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkemulticloud.v1.AzureNodePoolError) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkemulticloud.v1.AzureNodePoolError) + private static final com.google.cloud.gkemulticloud.v1.AzureNodePoolError DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkemulticloud.v1.AzureNodePoolError(); + } + + public static com.google.cloud.gkemulticloud.v1.AzureNodePoolError getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AzureNodePoolError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AzureNodePoolError getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolErrorOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolErrorOrBuilder.java new file mode 100644 index 000000000000..e572efc15e82 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolErrorOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/azure_resources.proto + +package com.google.cloud.gkemulticloud.v1; + +public interface AzureNodePoolErrorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AzureNodePoolError) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Human-friendly description of the error.
+   * 
+ * + * string message = 1; + * + * @return The message. + */ + java.lang.String getMessage(); + /** + * + * + *
+   * Human-friendly description of the error.
+   * 
+ * + * string message = 1; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolOrBuilder.java index 6133d4f57c60..f41a5ed60b07 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolOrBuilder.java @@ -60,7 +60,8 @@ public interface AzureNodePoolOrBuilder * * *
-   * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this node pool.
+   * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this
+   * node pool.
    * 
* * string version = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -72,7 +73,8 @@ public interface AzureNodePoolOrBuilder * * *
-   * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this node pool.
+   * Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this
+   * node pool.
    * 
* * string version = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -126,8 +128,8 @@ public interface AzureNodePoolOrBuilder * * *
-   * Required. The ARM ID of the subnet where the node pool VMs run. Make sure it's a
-   * subnet under the virtual network in the cluster configuration.
+   * Required. The ARM ID of the subnet where the node pool VMs run. Make sure
+   * it's a subnet under the virtual network in the cluster configuration.
    * 
* * string subnet_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -139,8 +141,8 @@ public interface AzureNodePoolOrBuilder * * *
-   * Required. The ARM ID of the subnet where the node pool VMs run. Make sure it's a
-   * subnet under the virtual network in the cluster configuration.
+   * Required. The ARM ID of the subnet where the node pool VMs run. Make sure
+   * it's a subnet under the virtual network in the cluster configuration.
    * 
* * string subnet_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -534,4 +536,66 @@ java.lang.String getAnnotationsOrDefault( * @return The bytes for azureAvailabilityZone. */ com.google.protobuf.ByteString getAzureAvailabilityZoneBytes(); + + /** + * + * + *
+   * Output only. A set of errors found in the node pool.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getErrorsList(); + /** + * + * + *
+   * Output only. A set of errors found in the node pool.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkemulticloud.v1.AzureNodePoolError getErrors(int index); + /** + * + * + *
+   * Output only. A set of errors found in the node pool.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getErrorsCount(); + /** + * + * + *
+   * Output only. A set of errors found in the node pool.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getErrorsOrBuilderList(); + /** + * + * + *
+   * Output only. A set of errors found in the node pool.
+   * 
+ * + * + * repeated .google.cloud.gkemulticloud.v1.AzureNodePoolError errors = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkemulticloud.v1.AzureNodePoolErrorOrBuilder getErrorsOrBuilder(int index); } diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureProxyConfig.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureProxyConfig.java index f74eaa5d0e22..f9b8423a6f82 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureProxyConfig.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureProxyConfig.java @@ -128,6 +128,9 @@ public com.google.protobuf.ByteString getResourceGroupIdBytes() { * *
    * The URL the of the proxy setting secret with its version.
+   * The secret must be a JSON encoded proxy configuration
+   * as described in
+   * https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file
    * Secret ids are formatted as
    * `https://<key-vault-name>.vault.azure.net/secrets/<secret-name>/<secret-version>`.
    * 
@@ -153,6 +156,9 @@ public java.lang.String getSecretId() { * *
    * The URL the of the proxy setting secret with its version.
+   * The secret must be a JSON encoded proxy configuration
+   * as described in
+   * https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file
    * Secret ids are formatted as
    * `https://<key-vault-name>.vault.azure.net/secrets/<secret-name>/<secret-version>`.
    * 
@@ -648,6 +654,9 @@ public Builder setResourceGroupIdBytes(com.google.protobuf.ByteString value) { * *
      * The URL the of the proxy setting secret with its version.
+     * The secret must be a JSON encoded proxy configuration
+     * as described in
+     * https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file
      * Secret ids are formatted as
      * `https://<key-vault-name>.vault.azure.net/secrets/<secret-name>/<secret-version>`.
      * 
@@ -672,6 +681,9 @@ public java.lang.String getSecretId() { * *
      * The URL the of the proxy setting secret with its version.
+     * The secret must be a JSON encoded proxy configuration
+     * as described in
+     * https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file
      * Secret ids are formatted as
      * `https://<key-vault-name>.vault.azure.net/secrets/<secret-name>/<secret-version>`.
      * 
@@ -696,6 +708,9 @@ public com.google.protobuf.ByteString getSecretIdBytes() { * *
      * The URL the of the proxy setting secret with its version.
+     * The secret must be a JSON encoded proxy configuration
+     * as described in
+     * https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file
      * Secret ids are formatted as
      * `https://<key-vault-name>.vault.azure.net/secrets/<secret-name>/<secret-version>`.
      * 
@@ -719,6 +734,9 @@ public Builder setSecretId(java.lang.String value) { * *
      * The URL the of the proxy setting secret with its version.
+     * The secret must be a JSON encoded proxy configuration
+     * as described in
+     * https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file
      * Secret ids are formatted as
      * `https://<key-vault-name>.vault.azure.net/secrets/<secret-name>/<secret-version>`.
      * 
@@ -738,6 +756,9 @@ public Builder clearSecretId() { * *
      * The URL the of the proxy setting secret with its version.
+     * The secret must be a JSON encoded proxy configuration
+     * as described in
+     * https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file
      * Secret ids are formatted as
      * `https://<key-vault-name>.vault.azure.net/secrets/<secret-name>/<secret-version>`.
      * 
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureProxyConfigOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureProxyConfigOrBuilder.java index 174189630844..1b5bf464f9b6 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureProxyConfigOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureProxyConfigOrBuilder.java @@ -57,6 +57,9 @@ public interface AzureProxyConfigOrBuilder * *
    * The URL the of the proxy setting secret with its version.
+   * The secret must be a JSON encoded proxy configuration
+   * as described in
+   * https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file
    * Secret ids are formatted as
    * `https://<key-vault-name>.vault.azure.net/secrets/<secret-name>/<secret-version>`.
    * 
@@ -71,6 +74,9 @@ public interface AzureProxyConfigOrBuilder * *
    * The URL the of the proxy setting secret with its version.
+   * The secret must be a JSON encoded proxy configuration
+   * as described in
+   * https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file
    * Secret ids are formatted as
    * `https://<key-vault-name>.vault.azure.net/secrets/<secret-name>/<secret-version>`.
    * 
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureResourcesProto.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureResourcesProto.java index 542959ce4670..94ee3a15f6da 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureResourcesProto.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureResourcesProto.java @@ -123,6 +123,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_gkemulticloud_v1_AzureClusterResources_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_gkemulticloud_v1_AzureClusterResources_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkemulticloud_v1_AzureClusterError_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkemulticloud_v1_AzureClusterError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkemulticloud_v1_AzureNodePoolError_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkemulticloud_v1_AzureNodePoolError_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -137,7 +145,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "d.v1\032\037google/api/field_behavior.proto\032\031g" + "oogle/api/resource.proto\0324google/cloud/g" + "kemulticloud/v1/common_resources.proto\032\037" - + "google/protobuf/timestamp.proto\"\325\n\n\014Azur" + + "google/protobuf/timestamp.proto\"\355\013\n\014Azur" + "eCluster\022\014\n\004name\030\001 \001(\t\022\030\n\013description\030\002 " + "\001(\tB\003\340A\001\022\031\n\014azure_region\030\003 \001(\tB\003\340A\002\022\036\n\021r" + "esource_group_id\030\021 \001(\tB\003\340A\002\022\031\n\014azure_cli" @@ -160,128 +168,135 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "le.cloud.gkemulticloud.v1.WorkloadIdenti" + "tyConfigB\003\340A\003\022#\n\026cluster_ca_certificate\030" + "\023 \001(\tB\003\340A\003\0228\n\005fleet\030\024 \001(\0132$.google.cloud" - + ".gkemulticloud.v1.FleetB\003\340A\001\022T\n\021managed_" + + ".gkemulticloud.v1.FleetB\003\340A\002\022T\n\021managed_" + "resources\030\025 \001(\01324.google.cloud.gkemultic" + "loud.v1.AzureClusterResourcesB\003\340A\003\022I\n\016lo" + "gging_config\030\027 \001(\0132,.google.cloud.gkemul" - + "ticloud.v1.LoggingConfigB\003\340A\001\0322\n\020Annotat" - + "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001\"u\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014PRO" - + "VISIONING\020\001\022\013\n\007RUNNING\020\002\022\017\n\013RECONCILING\020" - + "\003\022\014\n\010STOPPING\020\004\022\t\n\005ERROR\020\005\022\014\n\010DEGRADED\020\006" - + ":u\352Ar\n)gkemulticloud.googleapis.com/Azur" - + "eCluster\022Eprojects/{project}/locations/{" - + "location}/azureClusters/{azure_cluster}\"" - + "\267\001\n\026AzureClusterNetworking\022\037\n\022virtual_ne" - + "twork_id\030\001 \001(\tB\003\340A\002\022$\n\027pod_address_cidr_" - + "blocks\030\002 \003(\tB\003\340A\002\022(\n\033service_address_cid" - + "r_blocks\030\003 \003(\tB\003\340A\002\022,\n\037service_load_bala" - + "ncer_subnet_id\030\005 \001(\tB\003\340A\001\"\242\006\n\021AzureContr" - + "olPlane\022\024\n\007version\030\001 \001(\tB\003\340A\002\022\026\n\tsubnet_" - + "id\030\002 \001(\tB\003\340A\001\022\024\n\007vm_size\030\003 \001(\tB\003\340A\001\022F\n\ns" - + "sh_config\030\013 \001(\0132-.google.cloud.gkemultic" - + "loud.v1.AzureSshConfigB\003\340A\002\022J\n\013root_volu" - + "me\030\004 \001(\01320.google.cloud.gkemulticloud.v1" - + ".AzureDiskTemplateB\003\340A\001\022J\n\013main_volume\030\005" - + " \001(\01320.google.cloud.gkemulticloud.v1.Azu" - + "reDiskTemplateB\003\340A\001\022X\n\023database_encrypti" - + "on\030\n \001(\01326.google.cloud.gkemulticloud.v1" - + ".AzureDatabaseEncryptionB\003\340A\001\022J\n\014proxy_c" - + "onfig\030\014 \001(\0132/.google.cloud.gkemulticloud" - + ".v1.AzureProxyConfigB\003\340A\001\022T\n\021config_encr" - + "yption\030\016 \001(\01324.google.cloud.gkemulticlou" - + "d.v1.AzureConfigEncryptionB\003\340A\001\022M\n\004tags\030" - + "\007 \003(\0132:.google.cloud.gkemulticloud.v1.Az" - + "ureControlPlane.TagsEntryB\003\340A\001\022P\n\022replic" - + "a_placements\030\r \003(\0132/.google.cloud.gkemul" - + "ticloud.v1.ReplicaPlacementB\003\340A\001\022\037\n\022endp" - + "oint_subnet_id\030\017 \001(\tB\003\340A\001\032+\n\tTagsEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"P\n\020Replic" - + "aPlacement\022\026\n\tsubnet_id\030\001 \001(\tB\003\340A\002\022$\n\027az" - + "ure_availability_zone\030\002 \001(\tB\003\340A\002\"@\n\020Azur" - + "eProxyConfig\022\031\n\021resource_group_id\030\001 \001(\t\022" - + "\021\n\tsecret_id\030\002 \001(\t\".\n\027AzureDatabaseEncry" - + "ption\022\023\n\006key_id\030\003 \001(\tB\003\340A\002\"E\n\025AzureConfi" - + "gEncryption\022\023\n\006key_id\030\002 \001(\tB\003\340A\002\022\027\n\npubl" - + "ic_key\030\003 \001(\tB\003\340A\001\"*\n\021AzureDiskTemplate\022\025" - + "\n\010size_gib\030\001 \001(\005B\003\340A\001\"\265\003\n\013AzureClient\022\014\n" - + "\004name\030\001 \001(\t\022\026\n\ttenant_id\030\002 \001(\tB\003\340A\002\022\033\n\016a" - + "pplication_id\030\003 \001(\tB\003\340A\002\022U\n\013annotations\030" - + "\010 \003(\0132;.google.cloud.gkemulticloud.v1.Az" - + "ureClient.AnnotationsEntryB\003\340A\001\022\034\n\017pem_c" - + "ertificate\030\007 \001(\tB\003\340A\003\022\020\n\003uid\030\005 \001(\tB\003\340A\003\022" - + "4\n\013create_time\030\006 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\003\0322\n\020AnnotationsEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:r\352Ao\n(gkemulti" - + "cloud.googleapis.com/AzureClient\022Cprojec" - + "ts/{project}/locations/{location}/azureC" - + "lients/{azure_client}\"_\n\022AzureAuthorizat" - + "ion\022I\n\013admin_users\030\001 \003(\0132/.google.cloud." - + "gkemulticloud.v1.AzureClusterUserB\003\340A\002\")" - + "\n\020AzureClusterUser\022\025\n\010username\030\001 \001(\tB\003\340A" - + "\002\"\352\007\n\rAzureNodePool\022\014\n\004name\030\001 \001(\t\022\024\n\007ver" - + "sion\030\002 \001(\tB\003\340A\002\022C\n\006config\030\026 \001(\0132..google" - + ".cloud.gkemulticloud.v1.AzureNodeConfigB" - + "\003\340A\002\022\026\n\tsubnet_id\030\003 \001(\tB\003\340A\002\022Q\n\013autoscal" - + "ing\030\004 \001(\01327.google.cloud.gkemulticloud.v" - + "1.AzureNodePoolAutoscalingB\003\340A\002\022F\n\005state" - + "\030\006 \001(\01622.google.cloud.gkemulticloud.v1.A" - + "zureNodePool.StateB\003\340A\003\022\020\n\003uid\030\010 \001(\tB\003\340A" - + "\003\022\030\n\013reconciling\030\t \001(\010B\003\340A\003\0224\n\013create_ti" - + "me\030\n \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\0224\n\013update_time\030\013 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\022\014\n\004etag\030\014 \001(\t\022W\n\013annotat" - + "ions\030\r \003(\0132=.google.cloud.gkemulticloud." - + "v1.AzureNodePool.AnnotationsEntryB\003\340A\001\022R" - + "\n\023max_pods_constraint\030\025 \001(\01320.google.clo" - + "ud.gkemulticloud.v1.MaxPodsConstraintB\003\340" - + "A\002\022$\n\027azure_availability_zone\030\027 \001(\tB\003\340A\001" - + "\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\t:\0028\001\"u\n\005State\022\025\n\021STATE_UNSPECIFI" - + "ED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNNING\020\002\022\017\n\013R" - + "ECONCILING\020\003\022\014\n\010STOPPING\020\004\022\t\n\005ERROR\020\005\022\014\n" - + "\010DEGRADED\020\006:\230\001\352A\224\001\n*gkemulticloud.google" - + "apis.com/AzureNodePool\022fprojects/{projec" - + "t}/locations/{location}/azureClusters/{a" - + "zure_cluster}/azureNodePools/{azure_node" - + "_pool}\"\257\005\n\017AzureNodeConfig\022\024\n\007vm_size\030\001 " - + "\001(\tB\003\340A\001\022J\n\013root_volume\030\002 \001(\01320.google.c" - + "loud.gkemulticloud.v1.AzureDiskTemplateB" - + "\003\340A\001\022K\n\004tags\030\003 \003(\01328.google.cloud.gkemul" - + "ticloud.v1.AzureNodeConfig.TagsEntryB\003\340A" - + "\001\022\027\n\nimage_type\030\010 \001(\tB\003\340A\001\022F\n\nssh_config" - + "\030\007 \001(\0132-.google.cloud.gkemulticloud.v1.A" - + "zureSshConfigB\003\340A\002\022J\n\014proxy_config\030\t \001(\013" - + "2/.google.cloud.gkemulticloud.v1.AzurePr" - + "oxyConfigB\003\340A\001\022T\n\021config_encryption\030\014 \001(" - + "\01324.google.cloud.gkemulticloud.v1.AzureC" - + "onfigEncryptionB\003\340A\001\022=\n\006taints\030\n \003(\0132(.g" - + "oogle.cloud.gkemulticloud.v1.NodeTaintB\003" - + "\340A\001\022O\n\006labels\030\013 \003(\0132:.google.cloud.gkemu" - + "lticloud.v1.AzureNodeConfig.LabelsEntryB" - + "\003\340A\001\032+\n\tTagsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"T\n\030AzureNodePoolAutosca" - + "ling\022\033\n\016min_node_count\030\001 \001(\005B\003\340A\002\022\033\n\016max" - + "_node_count\030\002 \001(\005B\003\340A\002\"\376\001\n\021AzureServerCo" - + "nfig\022\014\n\004name\030\001 \001(\t\022J\n\016valid_versions\030\002 \003" - + "(\01322.google.cloud.gkemulticloud.v1.Azure" - + "K8sVersionInfo\022\037\n\027supported_azure_region" - + "s\030\003 \003(\t:n\352Ak\n.gkemulticloud.googleapis.c" - + "om/AzureServerConfig\0229projects/{project}" - + "/locations/{location}/azureServerConfig\"" - + "&\n\023AzureK8sVersionInfo\022\017\n\007version\030\001 \001(\t\"" - + "-\n\016AzureSshConfig\022\033\n\016authorized_key\030\001 \001(" - + "\tB\003\340A\002\"y\n\025AzureClusterResources\022&\n\031netwo" - + "rk_security_group_id\030\001 \001(\tB\003\340A\003\0228\n+contr" - + "ol_plane_application_security_group_id\030\002" - + " \001(\tB\003\340A\003B\351\001\n!com.google.cloud.gkemultic" - + "loud.v1B\023AzureResourcesProtoP\001ZJgoogle.g" - + "olang.org/genproto/googleapis/cloud/gkem" - + "ulticloud/v1;gkemulticloud\252\002\035Google.Clou" - + "d.GkeMultiCloud.V1\312\002\035Google\\Cloud\\GkeMul" - + "tiCloud\\V1\352\002 Google::Cloud::GkeMultiClou" - + "d::V1b\006proto3" + + "ticloud.v1.LoggingConfigB\003\340A\001\022E\n\006errors\030" + + "\030 \003(\01320.google.cloud.gkemulticloud.v1.Az" + + "ureClusterErrorB\003\340A\003\022O\n\021monitoring_confi" + + "g\030\031 \001(\0132/.google.cloud.gkemulticloud.v1." + + "MonitoringConfigB\003\340A\001\0322\n\020AnnotationsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"u\n\005Sta" + + "te\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014PROVISIONIN" + + "G\020\001\022\013\n\007RUNNING\020\002\022\017\n\013RECONCILING\020\003\022\014\n\010STO" + + "PPING\020\004\022\t\n\005ERROR\020\005\022\014\n\010DEGRADED\020\006:u\352Ar\n)g" + + "kemulticloud.googleapis.com/AzureCluster" + + "\022Eprojects/{project}/locations/{location" + + "}/azureClusters/{azure_cluster}\"\267\001\n\026Azur" + + "eClusterNetworking\022\037\n\022virtual_network_id" + + "\030\001 \001(\tB\003\340A\002\022$\n\027pod_address_cidr_blocks\030\002" + + " \003(\tB\003\340A\002\022(\n\033service_address_cidr_blocks" + + "\030\003 \003(\tB\003\340A\002\022,\n\037service_load_balancer_sub" + + "net_id\030\005 \001(\tB\003\340A\001\"\242\006\n\021AzureControlPlane\022" + + "\024\n\007version\030\001 \001(\tB\003\340A\002\022\026\n\tsubnet_id\030\002 \001(\t" + + "B\003\340A\001\022\024\n\007vm_size\030\003 \001(\tB\003\340A\001\022F\n\nssh_confi" + + "g\030\013 \001(\0132-.google.cloud.gkemulticloud.v1." + + "AzureSshConfigB\003\340A\002\022J\n\013root_volume\030\004 \001(\013" + + "20.google.cloud.gkemulticloud.v1.AzureDi" + + "skTemplateB\003\340A\001\022J\n\013main_volume\030\005 \001(\01320.g" + + "oogle.cloud.gkemulticloud.v1.AzureDiskTe" + + "mplateB\003\340A\001\022X\n\023database_encryption\030\n \001(\013" + + "26.google.cloud.gkemulticloud.v1.AzureDa" + + "tabaseEncryptionB\003\340A\001\022J\n\014proxy_config\030\014 " + + "\001(\0132/.google.cloud.gkemulticloud.v1.Azur" + + "eProxyConfigB\003\340A\001\022T\n\021config_encryption\030\016" + + " \001(\01324.google.cloud.gkemulticloud.v1.Azu" + + "reConfigEncryptionB\003\340A\001\022M\n\004tags\030\007 \003(\0132:." + + "google.cloud.gkemulticloud.v1.AzureContr" + + "olPlane.TagsEntryB\003\340A\001\022P\n\022replica_placem" + + "ents\030\r \003(\0132/.google.cloud.gkemulticloud." + + "v1.ReplicaPlacementB\003\340A\001\022\037\n\022endpoint_sub" + + "net_id\030\017 \001(\tB\003\340A\001\032+\n\tTagsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"P\n\020ReplicaPlaceme" + + "nt\022\026\n\tsubnet_id\030\001 \001(\tB\003\340A\002\022$\n\027azure_avai" + + "lability_zone\030\002 \001(\tB\003\340A\002\"@\n\020AzureProxyCo" + + "nfig\022\031\n\021resource_group_id\030\001 \001(\t\022\021\n\tsecre" + + "t_id\030\002 \001(\t\".\n\027AzureDatabaseEncryption\022\023\n" + + "\006key_id\030\003 \001(\tB\003\340A\002\"E\n\025AzureConfigEncrypt" + + "ion\022\023\n\006key_id\030\002 \001(\tB\003\340A\002\022\027\n\npublic_key\030\003" + + " \001(\tB\003\340A\001\"*\n\021AzureDiskTemplate\022\025\n\010size_g" + + "ib\030\001 \001(\005B\003\340A\001\"\265\003\n\013AzureClient\022\014\n\004name\030\001 " + + "\001(\t\022\026\n\ttenant_id\030\002 \001(\tB\003\340A\002\022\033\n\016applicati" + + "on_id\030\003 \001(\tB\003\340A\002\022U\n\013annotations\030\010 \003(\0132;." + + "google.cloud.gkemulticloud.v1.AzureClien" + + "t.AnnotationsEntryB\003\340A\001\022\034\n\017pem_certifica" + + "te\030\007 \001(\tB\003\340A\003\022\020\n\003uid\030\005 \001(\tB\003\340A\003\0224\n\013creat" + + "e_time\030\006 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001:r\352Ao\n(gkemulticloud.go" + + "ogleapis.com/AzureClient\022Cprojects/{proj" + + "ect}/locations/{location}/azureClients/{" + + "azure_client}\"_\n\022AzureAuthorization\022I\n\013a" + + "dmin_users\030\001 \003(\0132/.google.cloud.gkemulti" + + "cloud.v1.AzureClusterUserB\003\340A\002\")\n\020AzureC" + + "lusterUser\022\025\n\010username\030\001 \001(\tB\003\340A\002\"\262\010\n\rAz" + + "ureNodePool\022\014\n\004name\030\001 \001(\t\022\024\n\007version\030\002 \001" + + "(\tB\003\340A\002\022C\n\006config\030\026 \001(\0132..google.cloud.g" + + "kemulticloud.v1.AzureNodeConfigB\003\340A\002\022\026\n\t" + + "subnet_id\030\003 \001(\tB\003\340A\002\022Q\n\013autoscaling\030\004 \001(" + + "\01327.google.cloud.gkemulticloud.v1.AzureN" + + "odePoolAutoscalingB\003\340A\002\022F\n\005state\030\006 \001(\01622" + + ".google.cloud.gkemulticloud.v1.AzureNode" + + "Pool.StateB\003\340A\003\022\020\n\003uid\030\010 \001(\tB\003\340A\003\022\030\n\013rec" + + "onciling\030\t \001(\010B\003\340A\003\0224\n\013create_time\030\n \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upd" + + "ate_time\030\013 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\022\014\n\004etag\030\014 \001(\t\022W\n\013annotations\030\r \003" + + "(\0132=.google.cloud.gkemulticloud.v1.Azure" + + "NodePool.AnnotationsEntryB\003\340A\001\022R\n\023max_po" + + "ds_constraint\030\025 \001(\01320.google.cloud.gkemu" + + "lticloud.v1.MaxPodsConstraintB\003\340A\002\022$\n\027az" + + "ure_availability_zone\030\027 \001(\tB\003\340A\001\022F\n\006erro" + + "rs\030\035 \003(\01321.google.cloud.gkemulticloud.v1" + + ".AzureNodePoolErrorB\003\340A\003\0322\n\020AnnotationsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"u\n\005" + + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014PROVISIO" + + "NING\020\001\022\013\n\007RUNNING\020\002\022\017\n\013RECONCILING\020\003\022\014\n\010" + + "STOPPING\020\004\022\t\n\005ERROR\020\005\022\014\n\010DEGRADED\020\006:\230\001\352A" + + "\224\001\n*gkemulticloud.googleapis.com/AzureNo" + + "dePool\022fprojects/{project}/locations/{lo" + + "cation}/azureClusters/{azure_cluster}/az" + + "ureNodePools/{azure_node_pool}\"\257\005\n\017Azure" + + "NodeConfig\022\024\n\007vm_size\030\001 \001(\tB\003\340A\001\022J\n\013root" + + "_volume\030\002 \001(\01320.google.cloud.gkemulticlo" + + "ud.v1.AzureDiskTemplateB\003\340A\001\022K\n\004tags\030\003 \003" + + "(\01328.google.cloud.gkemulticloud.v1.Azure" + + "NodeConfig.TagsEntryB\003\340A\001\022\027\n\nimage_type\030" + + "\010 \001(\tB\003\340A\001\022F\n\nssh_config\030\007 \001(\0132-.google." + + "cloud.gkemulticloud.v1.AzureSshConfigB\003\340" + + "A\002\022J\n\014proxy_config\030\t \001(\0132/.google.cloud." + + "gkemulticloud.v1.AzureProxyConfigB\003\340A\001\022T" + + "\n\021config_encryption\030\014 \001(\01324.google.cloud" + + ".gkemulticloud.v1.AzureConfigEncryptionB" + + "\003\340A\001\022=\n\006taints\030\n \003(\0132(.google.cloud.gkem" + + "ulticloud.v1.NodeTaintB\003\340A\001\022O\n\006labels\030\013 " + + "\003(\0132:.google.cloud.gkemulticloud.v1.Azur" + + "eNodeConfig.LabelsEntryB\003\340A\001\032+\n\tTagsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013Lab" + + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\"T\n\030AzureNodePoolAutoscaling\022\033\n\016min_node" + + "_count\030\001 \001(\005B\003\340A\002\022\033\n\016max_node_count\030\002 \001(" + + "\005B\003\340A\002\"\376\001\n\021AzureServerConfig\022\014\n\004name\030\001 \001" + + "(\t\022J\n\016valid_versions\030\002 \003(\01322.google.clou" + + "d.gkemulticloud.v1.AzureK8sVersionInfo\022\037" + + "\n\027supported_azure_regions\030\003 \003(\t:n\352Ak\n.gk" + + "emulticloud.googleapis.com/AzureServerCo" + + "nfig\0229projects/{project}/locations/{loca" + + "tion}/azureServerConfig\"&\n\023AzureK8sVersi" + + "onInfo\022\017\n\007version\030\001 \001(\t\"-\n\016AzureSshConfi" + + "g\022\033\n\016authorized_key\030\001 \001(\tB\003\340A\002\"y\n\025AzureC" + + "lusterResources\022&\n\031network_security_grou" + + "p_id\030\001 \001(\tB\003\340A\003\0228\n+control_plane_applica" + + "tion_security_group_id\030\002 \001(\tB\003\340A\003\"$\n\021Azu" + + "reClusterError\022\017\n\007message\030\001 \001(\t\"%\n\022Azure" + + "NodePoolError\022\017\n\007message\030\001 \001(\tB\351\001\n!com.g" + + "oogle.cloud.gkemulticloud.v1B\023AzureResou" + + "rcesProtoP\001ZJgoogle.golang.org/genproto/" + + "googleapis/cloud/gkemulticloud/v1;gkemul" + + "ticloud\252\002\035Google.Cloud.GkeMultiCloud.V1\312" + + "\002\035Google\\Cloud\\GkeMultiCloud\\V1\352\002 Google" + + "::Cloud::GkeMultiCloud::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -319,6 +334,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Fleet", "ManagedResources", "LoggingConfig", + "Errors", + "MonitoringConfig", }); internal_static_google_cloud_gkemulticloud_v1_AzureCluster_AnnotationsEntry_descriptor = internal_static_google_cloud_gkemulticloud_v1_AzureCluster_descriptor @@ -470,6 +487,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Annotations", "MaxPodsConstraint", "AzureAvailabilityZone", + "Errors", }); internal_static_google_cloud_gkemulticloud_v1_AzureNodePool_AnnotationsEntry_descriptor = internal_static_google_cloud_gkemulticloud_v1_AzureNodePool_descriptor @@ -557,6 +575,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "NetworkSecurityGroupId", "ControlPlaneApplicationSecurityGroupId", }); + internal_static_google_cloud_gkemulticloud_v1_AzureClusterError_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_gkemulticloud_v1_AzureClusterError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkemulticloud_v1_AzureClusterError_descriptor, + new java.lang.String[] { + "Message", + }); + internal_static_google_cloud_gkemulticloud_v1_AzureNodePoolError_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_gkemulticloud_v1_AzureNodePoolError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkemulticloud_v1_AzureNodePoolError_descriptor, + new java.lang.String[] { + "Message", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureSshConfig.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureSshConfig.java index f0fa6f3eb73b..bde31bbf68ce 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureSshConfig.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureSshConfig.java @@ -73,9 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The SSH public key data for VMs managed by Anthos. This accepts the
-   * authorized_keys file format used in OpenSSH according to the sshd(8) manual
-   * page.
+   * Required. The SSH public key data for VMs managed by Anthos. This accepts
+   * the authorized_keys file format used in OpenSSH according to the sshd(8)
+   * manual page.
    * 
* * string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -98,9 +98,9 @@ public java.lang.String getAuthorizedKey() { * * *
-   * Required. The SSH public key data for VMs managed by Anthos. This accepts the
-   * authorized_keys file format used in OpenSSH according to the sshd(8) manual
-   * page.
+   * Required. The SSH public key data for VMs managed by Anthos. This accepts
+   * the authorized_keys file format used in OpenSSH according to the sshd(8)
+   * manual page.
    * 
* * string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -455,9 +455,9 @@ public Builder mergeFrom( * * *
-     * Required. The SSH public key data for VMs managed by Anthos. This accepts the
-     * authorized_keys file format used in OpenSSH according to the sshd(8) manual
-     * page.
+     * Required. The SSH public key data for VMs managed by Anthos. This accepts
+     * the authorized_keys file format used in OpenSSH according to the sshd(8)
+     * manual page.
      * 
* * string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -479,9 +479,9 @@ public java.lang.String getAuthorizedKey() { * * *
-     * Required. The SSH public key data for VMs managed by Anthos. This accepts the
-     * authorized_keys file format used in OpenSSH according to the sshd(8) manual
-     * page.
+     * Required. The SSH public key data for VMs managed by Anthos. This accepts
+     * the authorized_keys file format used in OpenSSH according to the sshd(8)
+     * manual page.
      * 
* * string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -503,9 +503,9 @@ public com.google.protobuf.ByteString getAuthorizedKeyBytes() { * * *
-     * Required. The SSH public key data for VMs managed by Anthos. This accepts the
-     * authorized_keys file format used in OpenSSH according to the sshd(8) manual
-     * page.
+     * Required. The SSH public key data for VMs managed by Anthos. This accepts
+     * the authorized_keys file format used in OpenSSH according to the sshd(8)
+     * manual page.
      * 
* * string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -526,9 +526,9 @@ public Builder setAuthorizedKey(java.lang.String value) { * * *
-     * Required. The SSH public key data for VMs managed by Anthos. This accepts the
-     * authorized_keys file format used in OpenSSH according to the sshd(8) manual
-     * page.
+     * Required. The SSH public key data for VMs managed by Anthos. This accepts
+     * the authorized_keys file format used in OpenSSH according to the sshd(8)
+     * manual page.
      * 
* * string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -545,9 +545,9 @@ public Builder clearAuthorizedKey() { * * *
-     * Required. The SSH public key data for VMs managed by Anthos. This accepts the
-     * authorized_keys file format used in OpenSSH according to the sshd(8) manual
-     * page.
+     * Required. The SSH public key data for VMs managed by Anthos. This accepts
+     * the authorized_keys file format used in OpenSSH according to the sshd(8)
+     * manual page.
      * 
* * string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureSshConfigOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureSshConfigOrBuilder.java index 4948caf7fba7..065a0852ecd0 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureSshConfigOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureSshConfigOrBuilder.java @@ -27,9 +27,9 @@ public interface AzureSshConfigOrBuilder * * *
-   * Required. The SSH public key data for VMs managed by Anthos. This accepts the
-   * authorized_keys file format used in OpenSSH according to the sshd(8) manual
-   * page.
+   * Required. The SSH public key data for VMs managed by Anthos. This accepts
+   * the authorized_keys file format used in OpenSSH according to the sshd(8)
+   * manual page.
    * 
* * string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -41,9 +41,9 @@ public interface AzureSshConfigOrBuilder * * *
-   * Required. The SSH public key data for VMs managed by Anthos. This accepts the
-   * authorized_keys file format used in OpenSSH according to the sshd(8) manual
-   * page.
+   * Required. The SSH public key data for VMs managed by Anthos. This accepts
+   * the authorized_keys file format used in OpenSSH according to the sshd(8)
+   * manual page.
    * 
* * string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CommonResourcesProto.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CommonResourcesProto.java index 872a1d895ff6..85585c3ff3ee 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CommonResourcesProto.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CommonResourcesProto.java @@ -55,6 +55,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_gkemulticloud_v1_LoggingComponentConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_gkemulticloud_v1_LoggingComponentConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkemulticloud_v1_MonitoringConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkemulticloud_v1_MonitoringConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkemulticloud_v1_ManagedPrometheusConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkemulticloud_v1_ManagedPrometheusConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -71,32 +79,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oadIdentityConfig\022\022\n\nissuer_uri\030\001 \001(\t\022\025\n" + "\rworkload_pool\030\002 \001(\t\022\031\n\021identity_provide" + "r\030\003 \001(\t\"3\n\021MaxPodsConstraint\022\036\n\021max_pods" - + "_per_node\030\001 \001(\003B\003\340A\002\"\310\001\n\021OperationMetada" + + "_per_node\030\001 \001(\003B\003\340A\002\"\200\002\n\021OperationMetada" + "ta\0224\n\013create_time\030\001 \001(\0132\032.google.protobu" + "f.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.goo" + "gle.protobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 " + "\001(\tB\003\340A\003\022\032\n\rstatus_detail\030\004 \001(\tB\003\340A\003\022\031\n\014" - + "error_detail\030\005 \001(\tB\003\340A\003\"\322\001\n\tNodeTaint\022\020\n" - + "\003key\030\001 \001(\tB\003\340A\002\022\022\n\005value\030\002 \001(\tB\003\340A\002\022D\n\006e" - + "ffect\030\003 \001(\0162/.google.cloud.gkemulticloud" - + ".v1.NodeTaint.EffectB\003\340A\002\"Y\n\006Effect\022\026\n\022E" - + "FFECT_UNSPECIFIED\020\000\022\017\n\013NO_SCHEDULE\020\001\022\026\n\022" - + "PREFER_NO_SCHEDULE\020\002\022\016\n\nNO_EXECUTE\020\003\"6\n\005" - + "Fleet\022\024\n\007project\030\001 \001(\tB\003\340A\002\022\027\n\nmembershi" - + "p\030\002 \001(\tB\003\340A\003\"`\n\rLoggingConfig\022O\n\020compone" - + "nt_config\030\001 \001(\01325.google.cloud.gkemultic" - + "loud.v1.LoggingComponentConfig\"\302\001\n\026Loggi" - + "ngComponentConfig\022Z\n\021enable_components\030\001" - + " \003(\0162?.google.cloud.gkemulticloud.v1.Log" - + "gingComponentConfig.Component\"L\n\tCompone" - + "nt\022\031\n\025COMPONENT_UNSPECIFIED\020\000\022\025\n\021SYSTEM_" - + "COMPONENTS\020\001\022\r\n\tWORKLOADS\020\002B\352\001\n!com.goog" - + "le.cloud.gkemulticloud.v1B\024CommonResourc" - + "esProtoP\001ZJgoogle.golang.org/genproto/go" - + "ogleapis/cloud/gkemulticloud/v1;gkemulti" - + "cloud\252\002\035Google.Cloud.GkeMultiCloud.V1\312\002\035" - + "Google\\Cloud\\GkeMultiCloud\\V1\352\002 Google::" - + "Cloud::GkeMultiCloud::V1b\006proto3" + + "error_detail\030\005 \001(\tB\003\340A\003\022\021\n\004verb\030\007 \001(\tB\003\340" + + "A\003\022#\n\026requested_cancellation\030\006 \001(\010B\003\340A\003\"" + + "\322\001\n\tNodeTaint\022\020\n\003key\030\001 \001(\tB\003\340A\002\022\022\n\005value" + + "\030\002 \001(\tB\003\340A\002\022D\n\006effect\030\003 \001(\0162/.google.clo" + + "ud.gkemulticloud.v1.NodeTaint.EffectB\003\340A" + + "\002\"Y\n\006Effect\022\026\n\022EFFECT_UNSPECIFIED\020\000\022\017\n\013N" + + "O_SCHEDULE\020\001\022\026\n\022PREFER_NO_SCHEDULE\020\002\022\016\n\n" + + "NO_EXECUTE\020\003\"6\n\005Fleet\022\024\n\007project\030\001 \001(\tB\003" + + "\340A\002\022\027\n\nmembership\030\002 \001(\tB\003\340A\003\"`\n\rLoggingC" + + "onfig\022O\n\020component_config\030\001 \001(\01325.google" + + ".cloud.gkemulticloud.v1.LoggingComponent" + + "Config\"\302\001\n\026LoggingComponentConfig\022Z\n\021ena" + + "ble_components\030\001 \003(\0162?.google.cloud.gkem" + + "ulticloud.v1.LoggingComponentConfig.Comp" + + "onent\"L\n\tComponent\022\031\n\025COMPONENT_UNSPECIF" + + "IED\020\000\022\025\n\021SYSTEM_COMPONENTS\020\001\022\r\n\tWORKLOAD" + + "S\020\002\"m\n\020MonitoringConfig\022Y\n\031managed_prome" + + "theus_config\030\002 \001(\01326.google.cloud.gkemul" + + "ticloud.v1.ManagedPrometheusConfig\"*\n\027Ma" + + "nagedPrometheusConfig\022\017\n\007enabled\030\001 \001(\010B\352" + + "\001\n!com.google.cloud.gkemulticloud.v1B\024Co" + + "mmonResourcesProtoP\001ZJgoogle.golang.org/" + + "genproto/googleapis/cloud/gkemulticloud/" + + "v1;gkemulticloud\252\002\035Google.Cloud.GkeMulti" + + "Cloud.V1\312\002\035Google\\Cloud\\GkeMultiCloud\\V1" + + "\352\002 Google::Cloud::GkeMultiCloud::V1b\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -127,7 +141,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gkemulticloud_v1_OperationMetadata_descriptor, new java.lang.String[] { - "CreateTime", "EndTime", "Target", "StatusDetail", "ErrorDetail", + "CreateTime", + "EndTime", + "Target", + "StatusDetail", + "ErrorDetail", + "Verb", + "RequestedCancellation", }); internal_static_google_cloud_gkemulticloud_v1_NodeTaint_descriptor = getDescriptor().getMessageTypes().get(3); @@ -161,6 +181,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "EnableComponents", }); + internal_static_google_cloud_gkemulticloud_v1_MonitoringConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_gkemulticloud_v1_MonitoringConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkemulticloud_v1_MonitoringConfig_descriptor, + new java.lang.String[] { + "ManagedPrometheusConfig", + }); + internal_static_google_cloud_gkemulticloud_v1_ManagedPrometheusConfig_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_gkemulticloud_v1_ManagedPrometheusConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkemulticloud_v1_ManagedPrometheusConfig_descriptor, + new java.lang.String[] { + "Enabled", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAttachedClusterRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAttachedClusterRequest.java new file mode 100644 index 000000000000..134a24488c1f --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAttachedClusterRequest.java @@ -0,0 +1,1286 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_service.proto + +package com.google.cloud.gkemulticloud.v1; + +/** + * + * + *
+ * Request message for `AttachedClusters.CreateAttachedCluster` method.
+ * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest} + */ +public final class CreateAttachedClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest) + CreateAttachedClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateAttachedClusterRequest.newBuilder() to construct. + private CreateAttachedClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateAttachedClusterRequest() { + parent_ = ""; + attachedClusterId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateAttachedClusterRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_CreateAttachedClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_CreateAttachedClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest.class, + com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The parent location where this
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * will be created.
+   * Location names are formatted as `projects/<project-id>/locations/<region>`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on Google Cloud resource names.
+   * 
+ * + * + * 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 location where this
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * will be created.
+   * Location names are formatted as `projects/<project-id>/locations/<region>`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on Google Cloud resource names.
+   * 
+ * + * + * 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 ATTACHED_CLUSTER_FIELD_NUMBER = 2; + private com.google.cloud.gkemulticloud.v1.AttachedCluster attachedCluster_; + /** + * + * + *
+   * Required. The specification of the
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the attachedCluster field is set. + */ + @java.lang.Override + public boolean hasAttachedCluster() { + return attachedCluster_ != null; + } + /** + * + * + *
+   * Required. The specification of the
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The attachedCluster. + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedCluster getAttachedCluster() { + return attachedCluster_ == null + ? com.google.cloud.gkemulticloud.v1.AttachedCluster.getDefaultInstance() + : attachedCluster_; + } + /** + * + * + *
+   * Required. The specification of the
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedClusterOrBuilder getAttachedClusterOrBuilder() { + return getAttachedCluster(); + } + + public static final int ATTACHED_CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object attachedClusterId_; + /** + * + * + *
+   * Required. A client provided ID the resource. Must be unique within the
+   * parent resource.
+   * The provided ID will be part of the
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * name formatted as
+   * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
+   * 
+ * + * string attached_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The attachedClusterId. + */ + @java.lang.Override + public java.lang.String getAttachedClusterId() { + java.lang.Object ref = attachedClusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attachedClusterId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. A client provided ID the resource. Must be unique within the
+   * parent resource.
+   * The provided ID will be part of the
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * name formatted as
+   * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
+   * 
+ * + * string attached_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for attachedClusterId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAttachedClusterIdBytes() { + java.lang.Object ref = attachedClusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + attachedClusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + * + * + *
+   * If set, only validate the request, but do not actually create the cluster.
+   * 
+ * + * bool validate_only = 4; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (attachedCluster_ != null) { + output.writeMessage(2, getAttachedCluster()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attachedClusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, attachedClusterId_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } + 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 (attachedCluster_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAttachedCluster()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attachedClusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, attachedClusterId_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest other = + (com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasAttachedCluster() != other.hasAttachedCluster()) return false; + if (hasAttachedCluster()) { + if (!getAttachedCluster().equals(other.getAttachedCluster())) return false; + } + if (!getAttachedClusterId().equals(other.getAttachedClusterId())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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 (hasAttachedCluster()) { + hash = (37 * hash) + ATTACHED_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getAttachedCluster().hashCode(); + } + hash = (37 * hash) + ATTACHED_CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getAttachedClusterId().hashCode(); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 `AttachedClusters.CreateAttachedCluster` method.
+   * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest) + com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_CreateAttachedClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_CreateAttachedClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest.class, + com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (attachedClusterBuilder_ == null) { + attachedCluster_ = null; + } else { + attachedCluster_ = null; + attachedClusterBuilder_ = null; + } + attachedClusterId_ = ""; + + validateOnly_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_CreateAttachedClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest + getDefaultInstanceForType() { + return com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest build() { + com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest buildPartial() { + com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest result = + new com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest(this); + result.parent_ = parent_; + if (attachedClusterBuilder_ == null) { + result.attachedCluster_ = attachedCluster_; + } else { + result.attachedCluster_ = attachedClusterBuilder_.build(); + } + result.attachedClusterId_ = attachedClusterId_; + result.validateOnly_ = validateOnly_; + 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.gkemulticloud.v1.CreateAttachedClusterRequest) { + return mergeFrom((com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest other) { + if (other + == com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasAttachedCluster()) { + mergeAttachedCluster(other.getAttachedCluster()); + } + if (!other.getAttachedClusterId().isEmpty()) { + attachedClusterId_ = other.attachedClusterId_; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + 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(); + + break; + } // case 10 + case 18: + { + input.readMessage(getAttachedClusterFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + attachedClusterId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + validateOnly_ = input.readBool(); + + 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 java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent location where this
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * will be created.
+     * Location names are formatted as `projects/<project-id>/locations/<region>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on Google Cloud resource names.
+     * 
+ * + * + * 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 location where this
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * will be created.
+     * Location names are formatted as `projects/<project-id>/locations/<region>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on Google Cloud resource names.
+     * 
+ * + * + * 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 location where this
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * will be created.
+     * Location names are formatted as `projects/<project-id>/locations/<region>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on Google Cloud resource names.
+     * 
+ * + * + * 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent location where this
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * will be created.
+     * Location names are formatted as `projects/<project-id>/locations/<region>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on Google Cloud resource names.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent location where this
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * will be created.
+     * Location names are formatted as `projects/<project-id>/locations/<region>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on Google Cloud resource names.
+     * 
+ * + * + * 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; + onChanged(); + return this; + } + + private com.google.cloud.gkemulticloud.v1.AttachedCluster attachedCluster_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AttachedCluster, + com.google.cloud.gkemulticloud.v1.AttachedCluster.Builder, + com.google.cloud.gkemulticloud.v1.AttachedClusterOrBuilder> + attachedClusterBuilder_; + /** + * + * + *
+     * Required. The specification of the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the attachedCluster field is set. + */ + public boolean hasAttachedCluster() { + return attachedClusterBuilder_ != null || attachedCluster_ != null; + } + /** + * + * + *
+     * Required. The specification of the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The attachedCluster. + */ + public com.google.cloud.gkemulticloud.v1.AttachedCluster getAttachedCluster() { + if (attachedClusterBuilder_ == null) { + return attachedCluster_ == null + ? com.google.cloud.gkemulticloud.v1.AttachedCluster.getDefaultInstance() + : attachedCluster_; + } else { + return attachedClusterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The specification of the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAttachedCluster(com.google.cloud.gkemulticloud.v1.AttachedCluster value) { + if (attachedClusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attachedCluster_ = value; + onChanged(); + } else { + attachedClusterBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The specification of the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAttachedCluster( + com.google.cloud.gkemulticloud.v1.AttachedCluster.Builder builderForValue) { + if (attachedClusterBuilder_ == null) { + attachedCluster_ = builderForValue.build(); + onChanged(); + } else { + attachedClusterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The specification of the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAttachedCluster(com.google.cloud.gkemulticloud.v1.AttachedCluster value) { + if (attachedClusterBuilder_ == null) { + if (attachedCluster_ != null) { + attachedCluster_ = + com.google.cloud.gkemulticloud.v1.AttachedCluster.newBuilder(attachedCluster_) + .mergeFrom(value) + .buildPartial(); + } else { + attachedCluster_ = value; + } + onChanged(); + } else { + attachedClusterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The specification of the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAttachedCluster() { + if (attachedClusterBuilder_ == null) { + attachedCluster_ = null; + onChanged(); + } else { + attachedCluster_ = null; + attachedClusterBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The specification of the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkemulticloud.v1.AttachedCluster.Builder getAttachedClusterBuilder() { + + onChanged(); + return getAttachedClusterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The specification of the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkemulticloud.v1.AttachedClusterOrBuilder + getAttachedClusterOrBuilder() { + if (attachedClusterBuilder_ != null) { + return attachedClusterBuilder_.getMessageOrBuilder(); + } else { + return attachedCluster_ == null + ? com.google.cloud.gkemulticloud.v1.AttachedCluster.getDefaultInstance() + : attachedCluster_; + } + } + /** + * + * + *
+     * Required. The specification of the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AttachedCluster, + com.google.cloud.gkemulticloud.v1.AttachedCluster.Builder, + com.google.cloud.gkemulticloud.v1.AttachedClusterOrBuilder> + getAttachedClusterFieldBuilder() { + if (attachedClusterBuilder_ == null) { + attachedClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AttachedCluster, + com.google.cloud.gkemulticloud.v1.AttachedCluster.Builder, + com.google.cloud.gkemulticloud.v1.AttachedClusterOrBuilder>( + getAttachedCluster(), getParentForChildren(), isClean()); + attachedCluster_ = null; + } + return attachedClusterBuilder_; + } + + private java.lang.Object attachedClusterId_ = ""; + /** + * + * + *
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * name formatted as
+     * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
+     * 
+ * + * string attached_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The attachedClusterId. + */ + public java.lang.String getAttachedClusterId() { + java.lang.Object ref = attachedClusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attachedClusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * name formatted as
+     * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
+     * 
+ * + * string attached_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for attachedClusterId. + */ + public com.google.protobuf.ByteString getAttachedClusterIdBytes() { + java.lang.Object ref = attachedClusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + attachedClusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * name formatted as
+     * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
+     * 
+ * + * string attached_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The attachedClusterId to set. + * @return This builder for chaining. + */ + public Builder setAttachedClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + attachedClusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * name formatted as
+     * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
+     * 
+ * + * string attached_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAttachedClusterId() { + + attachedClusterId_ = getDefaultInstance().getAttachedClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * name formatted as
+     * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
+     * 
+ * + * string attached_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for attachedClusterId to set. + * @return This builder for chaining. + */ + public Builder setAttachedClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + attachedClusterId_ = value; + onChanged(); + return this; + } + + private boolean validateOnly_; + /** + * + * + *
+     * If set, only validate the request, but do not actually create the cluster.
+     * 
+ * + * bool validate_only = 4; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + /** + * + * + *
+     * If set, only validate the request, but do not actually create the cluster.
+     * 
+ * + * bool validate_only = 4; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If set, only validate the request, but do not actually create the cluster.
+     * 
+ * + * bool validate_only = 4; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + + validateOnly_ = 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.gkemulticloud.v1.CreateAttachedClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest) + private static final com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest(); + } + + public static com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAttachedClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAttachedClusterRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAttachedClusterRequestOrBuilder.java new file mode 100644 index 000000000000..687ad7795994 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAttachedClusterRequestOrBuilder.java @@ -0,0 +1,158 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_service.proto + +package com.google.cloud.gkemulticloud.v1; + +public interface CreateAttachedClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent location where this
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * will be created.
+   * Location names are formatted as `projects/<project-id>/locations/<region>`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on Google Cloud resource names.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent location where this
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * will be created.
+   * Location names are formatted as `projects/<project-id>/locations/<region>`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on Google Cloud resource names.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The specification of the
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the attachedCluster field is set. + */ + boolean hasAttachedCluster(); + /** + * + * + *
+   * Required. The specification of the
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The attachedCluster. + */ + com.google.cloud.gkemulticloud.v1.AttachedCluster getAttachedCluster(); + /** + * + * + *
+   * Required. The specification of the
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gkemulticloud.v1.AttachedClusterOrBuilder getAttachedClusterOrBuilder(); + + /** + * + * + *
+   * Required. A client provided ID the resource. Must be unique within the
+   * parent resource.
+   * The provided ID will be part of the
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * name formatted as
+   * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
+   * 
+ * + * string attached_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The attachedClusterId. + */ + java.lang.String getAttachedClusterId(); + /** + * + * + *
+   * Required. A client provided ID the resource. Must be unique within the
+   * parent resource.
+   * The provided ID will be part of the
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * name formatted as
+   * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
+   * 
+ * + * string attached_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for attachedClusterId. + */ + com.google.protobuf.ByteString getAttachedClusterIdBytes(); + + /** + * + * + *
+   * If set, only validate the request, but do not actually create the cluster.
+   * 
+ * + * bool validate_only = 4; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsClusterRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsClusterRequest.java index 252d0ea42378..5cbf08a9afa6 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsClusterRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsClusterRequest.java @@ -74,8 +74,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The parent location where this [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource
-   * will be created.
+   * Required. The parent location where this
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be
+   * created.
    * Location names are formatted as `projects/<project-id>/locations/<region>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
    * for more details on Google Cloud resource names.
@@ -103,8 +104,9 @@ public java.lang.String getParent() {
    *
    *
    * 
-   * Required. The parent location where this [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource
-   * will be created.
+   * Required. The parent location where this
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be
+   * created.
    * Location names are formatted as `projects/<project-id>/locations/<region>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
    * for more details on Google Cloud resource names.
@@ -135,7 +137,8 @@ public com.google.protobuf.ByteString getParentBytes() {
    *
    *
    * 
-   * Required. The specification of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.
+   * Required. The specification of the
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.
    * 
* * @@ -152,7 +155,8 @@ public boolean hasAwsCluster() { * * *
-   * Required. The specification of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.
+   * Required. The specification of the
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.
    * 
* * @@ -171,7 +175,8 @@ public com.google.cloud.gkemulticloud.v1.AwsCluster getAwsCluster() { * * *
-   * Required. The specification of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.
+   * Required. The specification of the
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.
    * 
* * @@ -189,12 +194,13 @@ public com.google.cloud.gkemulticloud.v1.AwsClusterOrBuilder getAwsClusterOrBuil * * *
-   * Required. A client provided ID the resource. Must be unique within the parent
-   * resource.
-   * The provided ID will be part of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
-   * resource name formatted as
+   * Required. A client provided ID the resource. Must be unique within the
+   * parent resource.
+   * The provided ID will be part of the
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name
+   * formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
-   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
    * 
* * string aws_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -217,12 +223,13 @@ public java.lang.String getAwsClusterId() { * * *
-   * Required. A client provided ID the resource. Must be unique within the parent
-   * resource.
-   * The provided ID will be part of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
-   * resource name formatted as
+   * Required. A client provided ID the resource. Must be unique within the
+   * parent resource.
+   * The provided ID will be part of the
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name
+   * formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
-   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
    * 
* * string aws_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -673,8 +680,9 @@ public Builder mergeFrom( * * *
-     * Required. The parent location where this [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource
-     * will be created.
+     * Required. The parent location where this
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be
+     * created.
      * Location names are formatted as `projects/<project-id>/locations/<region>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
      * for more details on Google Cloud resource names.
@@ -701,8 +709,9 @@ public java.lang.String getParent() {
      *
      *
      * 
-     * Required. The parent location where this [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource
-     * will be created.
+     * Required. The parent location where this
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be
+     * created.
      * Location names are formatted as `projects/<project-id>/locations/<region>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
      * for more details on Google Cloud resource names.
@@ -729,8 +738,9 @@ public com.google.protobuf.ByteString getParentBytes() {
      *
      *
      * 
-     * Required. The parent location where this [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource
-     * will be created.
+     * Required. The parent location where this
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be
+     * created.
      * Location names are formatted as `projects/<project-id>/locations/<region>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
      * for more details on Google Cloud resource names.
@@ -756,8 +766,9 @@ public Builder setParent(java.lang.String value) {
      *
      *
      * 
-     * Required. The parent location where this [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource
-     * will be created.
+     * Required. The parent location where this
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be
+     * created.
      * Location names are formatted as `projects/<project-id>/locations/<region>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
      * for more details on Google Cloud resource names.
@@ -779,8 +790,9 @@ public Builder clearParent() {
      *
      *
      * 
-     * Required. The parent location where this [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource
-     * will be created.
+     * Required. The parent location where this
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be
+     * created.
      * Location names are formatted as `projects/<project-id>/locations/<region>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
      * for more details on Google Cloud resource names.
@@ -814,7 +826,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Required. The specification of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.
+     * Required. The specification of the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.
      * 
* * @@ -830,7 +843,8 @@ public boolean hasAwsCluster() { * * *
-     * Required. The specification of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.
+     * Required. The specification of the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.
      * 
* * @@ -852,7 +866,8 @@ public com.google.cloud.gkemulticloud.v1.AwsCluster getAwsCluster() { * * *
-     * Required. The specification of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.
+     * Required. The specification of the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.
      * 
* * @@ -876,7 +891,8 @@ public Builder setAwsCluster(com.google.cloud.gkemulticloud.v1.AwsCluster value) * * *
-     * Required. The specification of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.
+     * Required. The specification of the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.
      * 
* * @@ -898,7 +914,8 @@ public Builder setAwsCluster( * * *
-     * Required. The specification of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.
+     * Required. The specification of the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.
      * 
* * @@ -926,7 +943,8 @@ public Builder mergeAwsCluster(com.google.cloud.gkemulticloud.v1.AwsCluster valu * * *
-     * Required. The specification of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.
+     * Required. The specification of the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.
      * 
* * @@ -948,7 +966,8 @@ public Builder clearAwsCluster() { * * *
-     * Required. The specification of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.
+     * Required. The specification of the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.
      * 
* * @@ -964,7 +983,8 @@ public com.google.cloud.gkemulticloud.v1.AwsCluster.Builder getAwsClusterBuilder * * *
-     * Required. The specification of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.
+     * Required. The specification of the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.
      * 
* * @@ -984,7 +1004,8 @@ public com.google.cloud.gkemulticloud.v1.AwsClusterOrBuilder getAwsClusterOrBuil * * *
-     * Required. The specification of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.
+     * Required. The specification of the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.
      * 
* * @@ -1013,12 +1034,13 @@ public com.google.cloud.gkemulticloud.v1.AwsClusterOrBuilder getAwsClusterOrBuil * * *
-     * Required. A client provided ID the resource. Must be unique within the parent
-     * resource.
-     * The provided ID will be part of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
-     * resource name formatted as
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name
+     * formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
-     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
      * 
* * string aws_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1040,12 +1062,13 @@ public java.lang.String getAwsClusterId() { * * *
-     * Required. A client provided ID the resource. Must be unique within the parent
-     * resource.
-     * The provided ID will be part of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
-     * resource name formatted as
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name
+     * formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
-     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
      * 
* * string aws_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1067,12 +1090,13 @@ public com.google.protobuf.ByteString getAwsClusterIdBytes() { * * *
-     * Required. A client provided ID the resource. Must be unique within the parent
-     * resource.
-     * The provided ID will be part of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
-     * resource name formatted as
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name
+     * formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
-     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
      * 
* * string aws_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1093,12 +1117,13 @@ public Builder setAwsClusterId(java.lang.String value) { * * *
-     * Required. A client provided ID the resource. Must be unique within the parent
-     * resource.
-     * The provided ID will be part of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
-     * resource name formatted as
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name
+     * formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
-     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
      * 
* * string aws_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1115,12 +1140,13 @@ public Builder clearAwsClusterId() { * * *
-     * Required. A client provided ID the resource. Must be unique within the parent
-     * resource.
-     * The provided ID will be part of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
-     * resource name formatted as
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name
+     * formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
-     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
      * 
* * string aws_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsClusterRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsClusterRequestOrBuilder.java index 5f11304b0a2a..bd911f144d47 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsClusterRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsClusterRequestOrBuilder.java @@ -27,8 +27,9 @@ public interface CreateAwsClusterRequestOrBuilder * * *
-   * Required. The parent location where this [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource
-   * will be created.
+   * Required. The parent location where this
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be
+   * created.
    * Location names are formatted as `projects/<project-id>/locations/<region>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
    * for more details on Google Cloud resource names.
@@ -45,8 +46,9 @@ public interface CreateAwsClusterRequestOrBuilder
    *
    *
    * 
-   * Required. The parent location where this [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource
-   * will be created.
+   * Required. The parent location where this
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be
+   * created.
    * Location names are formatted as `projects/<project-id>/locations/<region>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
    * for more details on Google Cloud resource names.
@@ -64,7 +66,8 @@ public interface CreateAwsClusterRequestOrBuilder
    *
    *
    * 
-   * Required. The specification of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.
+   * Required. The specification of the
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.
    * 
* * @@ -78,7 +81,8 @@ public interface CreateAwsClusterRequestOrBuilder * * *
-   * Required. The specification of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.
+   * Required. The specification of the
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.
    * 
* * @@ -92,7 +96,8 @@ public interface CreateAwsClusterRequestOrBuilder * * *
-   * Required. The specification of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.
+   * Required. The specification of the
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.
    * 
* * @@ -105,12 +110,13 @@ public interface CreateAwsClusterRequestOrBuilder * * *
-   * Required. A client provided ID the resource. Must be unique within the parent
-   * resource.
-   * The provided ID will be part of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
-   * resource name formatted as
+   * Required. A client provided ID the resource. Must be unique within the
+   * parent resource.
+   * The provided ID will be part of the
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name
+   * formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
-   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
    * 
* * string aws_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -122,12 +128,13 @@ public interface CreateAwsClusterRequestOrBuilder * * *
-   * Required. A client provided ID the resource. Must be unique within the parent
-   * resource.
-   * The provided ID will be part of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
-   * resource name formatted as
+   * Required. A client provided ID the resource. Must be unique within the
+   * parent resource.
+   * The provided ID will be part of the
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name
+   * formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
-   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
    * 
* * string aws_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsNodePoolRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsNodePoolRequest.java index cef3a2979620..609243712a26 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsNodePoolRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsNodePoolRequest.java @@ -74,7 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource where this node pool will be created.
+   * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+   * resource where this node pool will be created.
    * `AwsCluster` names are formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -103,7 +104,8 @@ public java.lang.String getParent() {
    *
    *
    * 
-   * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource where this node pool will be created.
+   * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+   * resource where this node pool will be created.
    * `AwsCluster` names are formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -135,7 +137,8 @@ public com.google.protobuf.ByteString getParentBytes() {
    *
    *
    * 
-   * Required. The specification of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.
+   * Required. The specification of the
+   * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.
    * 
* * @@ -152,7 +155,8 @@ public boolean hasAwsNodePool() { * * *
-   * Required. The specification of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.
+   * Required. The specification of the
+   * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.
    * 
* * @@ -171,7 +175,8 @@ public com.google.cloud.gkemulticloud.v1.AwsNodePool getAwsNodePool() { * * *
-   * Required. The specification of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.
+   * Required. The specification of the
+   * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.
    * 
* * @@ -189,12 +194,13 @@ public com.google.cloud.gkemulticloud.v1.AwsNodePoolOrBuilder getAwsNodePoolOrBu * * *
-   * Required. A client provided ID the resource. Must be unique within the parent
-   * resource.
-   * The provided ID will be part of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
-   * resource name formatted as
+   * Required. A client provided ID the resource. Must be unique within the
+   * parent resource.
+   * The provided ID will be part of the
+   * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name
+   * formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
-   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
    * 
* * string aws_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -217,12 +223,13 @@ public java.lang.String getAwsNodePoolId() { * * *
-   * Required. A client provided ID the resource. Must be unique within the parent
-   * resource.
-   * The provided ID will be part of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
-   * resource name formatted as
+   * Required. A client provided ID the resource. Must be unique within the
+   * parent resource.
+   * The provided ID will be part of the
+   * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name
+   * formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
-   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
    * 
* * string aws_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -674,7 +681,8 @@ public Builder mergeFrom( * * *
-     * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource where this node pool will be created.
+     * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+     * resource where this node pool will be created.
      * `AwsCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -702,7 +710,8 @@ public java.lang.String getParent() {
      *
      *
      * 
-     * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource where this node pool will be created.
+     * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+     * resource where this node pool will be created.
      * `AwsCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -730,7 +739,8 @@ public com.google.protobuf.ByteString getParentBytes() {
      *
      *
      * 
-     * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource where this node pool will be created.
+     * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+     * resource where this node pool will be created.
      * `AwsCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -757,7 +767,8 @@ public Builder setParent(java.lang.String value) {
      *
      *
      * 
-     * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource where this node pool will be created.
+     * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+     * resource where this node pool will be created.
      * `AwsCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -780,7 +791,8 @@ public Builder clearParent() {
      *
      *
      * 
-     * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource where this node pool will be created.
+     * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+     * resource where this node pool will be created.
      * `AwsCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -815,7 +827,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Required. The specification of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.
+     * Required. The specification of the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.
      * 
* * @@ -831,7 +844,8 @@ public boolean hasAwsNodePool() { * * *
-     * Required. The specification of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.
+     * Required. The specification of the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.
      * 
* * @@ -853,7 +867,8 @@ public com.google.cloud.gkemulticloud.v1.AwsNodePool getAwsNodePool() { * * *
-     * Required. The specification of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.
+     * Required. The specification of the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.
      * 
* * @@ -877,7 +892,8 @@ public Builder setAwsNodePool(com.google.cloud.gkemulticloud.v1.AwsNodePool valu * * *
-     * Required. The specification of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.
+     * Required. The specification of the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.
      * 
* * @@ -899,7 +915,8 @@ public Builder setAwsNodePool( * * *
-     * Required. The specification of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.
+     * Required. The specification of the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.
      * 
* * @@ -927,7 +944,8 @@ public Builder mergeAwsNodePool(com.google.cloud.gkemulticloud.v1.AwsNodePool va * * *
-     * Required. The specification of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.
+     * Required. The specification of the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.
      * 
* * @@ -949,7 +967,8 @@ public Builder clearAwsNodePool() { * * *
-     * Required. The specification of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.
+     * Required. The specification of the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.
      * 
* * @@ -965,7 +984,8 @@ public com.google.cloud.gkemulticloud.v1.AwsNodePool.Builder getAwsNodePoolBuild * * *
-     * Required. The specification of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.
+     * Required. The specification of the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.
      * 
* * @@ -985,7 +1005,8 @@ public com.google.cloud.gkemulticloud.v1.AwsNodePoolOrBuilder getAwsNodePoolOrBu * * *
-     * Required. The specification of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.
+     * Required. The specification of the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.
      * 
* * @@ -1014,12 +1035,13 @@ public com.google.cloud.gkemulticloud.v1.AwsNodePoolOrBuilder getAwsNodePoolOrBu * * *
-     * Required. A client provided ID the resource. Must be unique within the parent
-     * resource.
-     * The provided ID will be part of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
-     * resource name formatted as
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name
+     * formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
-     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
      * 
* * string aws_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1041,12 +1063,13 @@ public java.lang.String getAwsNodePoolId() { * * *
-     * Required. A client provided ID the resource. Must be unique within the parent
-     * resource.
-     * The provided ID will be part of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
-     * resource name formatted as
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name
+     * formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
-     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
      * 
* * string aws_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1068,12 +1091,13 @@ public com.google.protobuf.ByteString getAwsNodePoolIdBytes() { * * *
-     * Required. A client provided ID the resource. Must be unique within the parent
-     * resource.
-     * The provided ID will be part of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
-     * resource name formatted as
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name
+     * formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
-     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
      * 
* * string aws_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1094,12 +1118,13 @@ public Builder setAwsNodePoolId(java.lang.String value) { * * *
-     * Required. A client provided ID the resource. Must be unique within the parent
-     * resource.
-     * The provided ID will be part of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
-     * resource name formatted as
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name
+     * formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
-     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
      * 
* * string aws_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1116,12 +1141,13 @@ public Builder clearAwsNodePoolId() { * * *
-     * Required. A client provided ID the resource. Must be unique within the parent
-     * resource.
-     * The provided ID will be part of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
-     * resource name formatted as
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name
+     * formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
-     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
      * 
* * string aws_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsNodePoolRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsNodePoolRequestOrBuilder.java index 228adf1a9f63..90334b1ede8b 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsNodePoolRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsNodePoolRequestOrBuilder.java @@ -27,7 +27,8 @@ public interface CreateAwsNodePoolRequestOrBuilder * * *
-   * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource where this node pool will be created.
+   * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+   * resource where this node pool will be created.
    * `AwsCluster` names are formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -45,7 +46,8 @@ public interface CreateAwsNodePoolRequestOrBuilder
    *
    *
    * 
-   * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource where this node pool will be created.
+   * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+   * resource where this node pool will be created.
    * `AwsCluster` names are formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -64,7 +66,8 @@ public interface CreateAwsNodePoolRequestOrBuilder
    *
    *
    * 
-   * Required. The specification of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.
+   * Required. The specification of the
+   * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.
    * 
* * @@ -78,7 +81,8 @@ public interface CreateAwsNodePoolRequestOrBuilder * * *
-   * Required. The specification of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.
+   * Required. The specification of the
+   * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.
    * 
* * @@ -92,7 +96,8 @@ public interface CreateAwsNodePoolRequestOrBuilder * * *
-   * Required. The specification of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.
+   * Required. The specification of the
+   * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.
    * 
* * @@ -105,12 +110,13 @@ public interface CreateAwsNodePoolRequestOrBuilder * * *
-   * Required. A client provided ID the resource. Must be unique within the parent
-   * resource.
-   * The provided ID will be part of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
-   * resource name formatted as
+   * Required. A client provided ID the resource. Must be unique within the
+   * parent resource.
+   * The provided ID will be part of the
+   * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name
+   * formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
-   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
    * 
* * string aws_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -122,12 +128,13 @@ public interface CreateAwsNodePoolRequestOrBuilder * * *
-   * Required. A client provided ID the resource. Must be unique within the parent
-   * resource.
-   * The provided ID will be part of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
-   * resource name formatted as
+   * Required. A client provided ID the resource. Must be unique within the
+   * parent resource.
+   * The provided ID will be part of the
+   * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name
+   * formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
-   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
    * 
* * string aws_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClientRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClientRequest.java index 5b2833488147..9757190354f1 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClientRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClientRequest.java @@ -74,8 +74,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The parent location where this [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource
-   * will be created.
+   * Required. The parent location where this
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be
+   * created.
    * Location names are formatted as `projects/<project-id>/locations/<region>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
    * for more details on Google Cloud resource names.
@@ -103,8 +104,9 @@ public java.lang.String getParent() {
    *
    *
    * 
-   * Required. The parent location where this [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource
-   * will be created.
+   * Required. The parent location where this
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be
+   * created.
    * Location names are formatted as `projects/<project-id>/locations/<region>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
    * for more details on Google Cloud resource names.
@@ -135,7 +137,8 @@ public com.google.protobuf.ByteString getParentBytes() {
    *
    *
    * 
-   * Required. The specification of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.
+   * Required. The specification of the
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.
    * 
* * @@ -152,7 +155,8 @@ public boolean hasAzureClient() { * * *
-   * Required. The specification of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.
+   * Required. The specification of the
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.
    * 
* * @@ -171,7 +175,8 @@ public com.google.cloud.gkemulticloud.v1.AzureClient getAzureClient() { * * *
-   * Required. The specification of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.
+   * Required. The specification of the
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.
    * 
* * @@ -189,12 +194,13 @@ public com.google.cloud.gkemulticloud.v1.AzureClientOrBuilder getAzureClientOrBu * * *
-   * Required. A client provided ID the resource. Must be unique within the parent
-   * resource.
-   * The provided ID will be part of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
-   * resource name formatted as
+   * Required. A client provided ID the resource. Must be unique within the
+   * parent resource.
+   * The provided ID will be part of the
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name
+   * formatted as
    * `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
-   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
    * 
* * string azure_client_id = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -217,12 +223,13 @@ public java.lang.String getAzureClientId() { * * *
-   * Required. A client provided ID the resource. Must be unique within the parent
-   * resource.
-   * The provided ID will be part of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
-   * resource name formatted as
+   * Required. A client provided ID the resource. Must be unique within the
+   * parent resource.
+   * The provided ID will be part of the
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name
+   * formatted as
    * `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
-   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
    * 
* * string azure_client_id = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -673,8 +680,9 @@ public Builder mergeFrom( * * *
-     * Required. The parent location where this [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource
-     * will be created.
+     * Required. The parent location where this
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be
+     * created.
      * Location names are formatted as `projects/<project-id>/locations/<region>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
      * for more details on Google Cloud resource names.
@@ -701,8 +709,9 @@ public java.lang.String getParent() {
      *
      *
      * 
-     * Required. The parent location where this [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource
-     * will be created.
+     * Required. The parent location where this
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be
+     * created.
      * Location names are formatted as `projects/<project-id>/locations/<region>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
      * for more details on Google Cloud resource names.
@@ -729,8 +738,9 @@ public com.google.protobuf.ByteString getParentBytes() {
      *
      *
      * 
-     * Required. The parent location where this [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource
-     * will be created.
+     * Required. The parent location where this
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be
+     * created.
      * Location names are formatted as `projects/<project-id>/locations/<region>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
      * for more details on Google Cloud resource names.
@@ -756,8 +766,9 @@ public Builder setParent(java.lang.String value) {
      *
      *
      * 
-     * Required. The parent location where this [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource
-     * will be created.
+     * Required. The parent location where this
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be
+     * created.
      * Location names are formatted as `projects/<project-id>/locations/<region>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
      * for more details on Google Cloud resource names.
@@ -779,8 +790,9 @@ public Builder clearParent() {
      *
      *
      * 
-     * Required. The parent location where this [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource
-     * will be created.
+     * Required. The parent location where this
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be
+     * created.
      * Location names are formatted as `projects/<project-id>/locations/<region>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
      * for more details on Google Cloud resource names.
@@ -814,7 +826,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Required. The specification of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.
+     * Required. The specification of the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.
      * 
* * @@ -830,7 +843,8 @@ public boolean hasAzureClient() { * * *
-     * Required. The specification of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.
+     * Required. The specification of the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.
      * 
* * @@ -852,7 +866,8 @@ public com.google.cloud.gkemulticloud.v1.AzureClient getAzureClient() { * * *
-     * Required. The specification of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.
+     * Required. The specification of the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.
      * 
* * @@ -876,7 +891,8 @@ public Builder setAzureClient(com.google.cloud.gkemulticloud.v1.AzureClient valu * * *
-     * Required. The specification of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.
+     * Required. The specification of the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.
      * 
* * @@ -898,7 +914,8 @@ public Builder setAzureClient( * * *
-     * Required. The specification of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.
+     * Required. The specification of the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.
      * 
* * @@ -926,7 +943,8 @@ public Builder mergeAzureClient(com.google.cloud.gkemulticloud.v1.AzureClient va * * *
-     * Required. The specification of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.
+     * Required. The specification of the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.
      * 
* * @@ -948,7 +966,8 @@ public Builder clearAzureClient() { * * *
-     * Required. The specification of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.
+     * Required. The specification of the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.
      * 
* * @@ -964,7 +983,8 @@ public com.google.cloud.gkemulticloud.v1.AzureClient.Builder getAzureClientBuild * * *
-     * Required. The specification of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.
+     * Required. The specification of the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.
      * 
* * @@ -984,7 +1004,8 @@ public com.google.cloud.gkemulticloud.v1.AzureClientOrBuilder getAzureClientOrBu * * *
-     * Required. The specification of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.
+     * Required. The specification of the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.
      * 
* * @@ -1013,12 +1034,13 @@ public com.google.cloud.gkemulticloud.v1.AzureClientOrBuilder getAzureClientOrBu * * *
-     * Required. A client provided ID the resource. Must be unique within the parent
-     * resource.
-     * The provided ID will be part of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
-     * resource name formatted as
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name
+     * formatted as
      * `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
-     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
      * 
* * string azure_client_id = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1040,12 +1062,13 @@ public java.lang.String getAzureClientId() { * * *
-     * Required. A client provided ID the resource. Must be unique within the parent
-     * resource.
-     * The provided ID will be part of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
-     * resource name formatted as
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name
+     * formatted as
      * `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
-     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
      * 
* * string azure_client_id = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1067,12 +1090,13 @@ public com.google.protobuf.ByteString getAzureClientIdBytes() { * * *
-     * Required. A client provided ID the resource. Must be unique within the parent
-     * resource.
-     * The provided ID will be part of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
-     * resource name formatted as
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name
+     * formatted as
      * `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
-     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
      * 
* * string azure_client_id = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1093,12 +1117,13 @@ public Builder setAzureClientId(java.lang.String value) { * * *
-     * Required. A client provided ID the resource. Must be unique within the parent
-     * resource.
-     * The provided ID will be part of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
-     * resource name formatted as
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name
+     * formatted as
      * `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
-     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
      * 
* * string azure_client_id = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1115,12 +1140,13 @@ public Builder clearAzureClientId() { * * *
-     * Required. A client provided ID the resource. Must be unique within the parent
-     * resource.
-     * The provided ID will be part of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
-     * resource name formatted as
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name
+     * formatted as
      * `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
-     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
      * 
* * string azure_client_id = 4 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClientRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClientRequestOrBuilder.java index 49e91ab93c22..e67f2c0dafe8 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClientRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClientRequestOrBuilder.java @@ -27,8 +27,9 @@ public interface CreateAzureClientRequestOrBuilder * * *
-   * Required. The parent location where this [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource
-   * will be created.
+   * Required. The parent location where this
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be
+   * created.
    * Location names are formatted as `projects/<project-id>/locations/<region>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
    * for more details on Google Cloud resource names.
@@ -45,8 +46,9 @@ public interface CreateAzureClientRequestOrBuilder
    *
    *
    * 
-   * Required. The parent location where this [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource
-   * will be created.
+   * Required. The parent location where this
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be
+   * created.
    * Location names are formatted as `projects/<project-id>/locations/<region>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
    * for more details on Google Cloud resource names.
@@ -64,7 +66,8 @@ public interface CreateAzureClientRequestOrBuilder
    *
    *
    * 
-   * Required. The specification of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.
+   * Required. The specification of the
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.
    * 
* * @@ -78,7 +81,8 @@ public interface CreateAzureClientRequestOrBuilder * * *
-   * Required. The specification of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.
+   * Required. The specification of the
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.
    * 
* * @@ -92,7 +96,8 @@ public interface CreateAzureClientRequestOrBuilder * * *
-   * Required. The specification of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.
+   * Required. The specification of the
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.
    * 
* * @@ -105,12 +110,13 @@ public interface CreateAzureClientRequestOrBuilder * * *
-   * Required. A client provided ID the resource. Must be unique within the parent
-   * resource.
-   * The provided ID will be part of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
-   * resource name formatted as
+   * Required. A client provided ID the resource. Must be unique within the
+   * parent resource.
+   * The provided ID will be part of the
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name
+   * formatted as
    * `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
-   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
    * 
* * string azure_client_id = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -122,12 +128,13 @@ public interface CreateAzureClientRequestOrBuilder * * *
-   * Required. A client provided ID the resource. Must be unique within the parent
-   * resource.
-   * The provided ID will be part of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
-   * resource name formatted as
+   * Required. A client provided ID the resource. Must be unique within the
+   * parent resource.
+   * The provided ID will be part of the
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name
+   * formatted as
    * `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
-   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
    * 
* * string azure_client_id = 4 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClusterRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClusterRequest.java index b4cc2c1baae2..12335e39067e 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClusterRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClusterRequest.java @@ -74,8 +74,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The parent location where this [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource
-   * will be created.
+   * Required. The parent location where this
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be
+   * created.
    * Location names are formatted as `projects/<project-id>/locations/<region>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
    * for more details on Google Cloud resource names.
@@ -103,8 +104,9 @@ public java.lang.String getParent() {
    *
    *
    * 
-   * Required. The parent location where this [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource
-   * will be created.
+   * Required. The parent location where this
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be
+   * created.
    * Location names are formatted as `projects/<project-id>/locations/<region>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
    * for more details on Google Cloud resource names.
@@ -135,7 +137,8 @@ public com.google.protobuf.ByteString getParentBytes() {
    *
    *
    * 
-   * Required. The specification of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.
+   * Required. The specification of the
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.
    * 
* * @@ -152,7 +155,8 @@ public boolean hasAzureCluster() { * * *
-   * Required. The specification of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.
+   * Required. The specification of the
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.
    * 
* * @@ -171,7 +175,8 @@ public com.google.cloud.gkemulticloud.v1.AzureCluster getAzureCluster() { * * *
-   * Required. The specification of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.
+   * Required. The specification of the
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.
    * 
* * @@ -189,12 +194,13 @@ public com.google.cloud.gkemulticloud.v1.AzureClusterOrBuilder getAzureClusterOr * * *
-   * Required. A client provided ID the resource. Must be unique within the parent
-   * resource.
-   * The provided ID will be part of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
-   * resource name formatted as
+   * Required. A client provided ID the resource. Must be unique within the
+   * parent resource.
+   * The provided ID will be part of the
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name
+   * formatted as
    * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
-   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
    * 
* * string azure_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -217,12 +223,13 @@ public java.lang.String getAzureClusterId() { * * *
-   * Required. A client provided ID the resource. Must be unique within the parent
-   * resource.
-   * The provided ID will be part of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
-   * resource name formatted as
+   * Required. A client provided ID the resource. Must be unique within the
+   * parent resource.
+   * The provided ID will be part of the
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name
+   * formatted as
    * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
-   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
    * 
* * string azure_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -673,8 +680,9 @@ public Builder mergeFrom( * * *
-     * Required. The parent location where this [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource
-     * will be created.
+     * Required. The parent location where this
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be
+     * created.
      * Location names are formatted as `projects/<project-id>/locations/<region>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
      * for more details on Google Cloud resource names.
@@ -701,8 +709,9 @@ public java.lang.String getParent() {
      *
      *
      * 
-     * Required. The parent location where this [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource
-     * will be created.
+     * Required. The parent location where this
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be
+     * created.
      * Location names are formatted as `projects/<project-id>/locations/<region>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
      * for more details on Google Cloud resource names.
@@ -729,8 +738,9 @@ public com.google.protobuf.ByteString getParentBytes() {
      *
      *
      * 
-     * Required. The parent location where this [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource
-     * will be created.
+     * Required. The parent location where this
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be
+     * created.
      * Location names are formatted as `projects/<project-id>/locations/<region>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
      * for more details on Google Cloud resource names.
@@ -756,8 +766,9 @@ public Builder setParent(java.lang.String value) {
      *
      *
      * 
-     * Required. The parent location where this [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource
-     * will be created.
+     * Required. The parent location where this
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be
+     * created.
      * Location names are formatted as `projects/<project-id>/locations/<region>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
      * for more details on Google Cloud resource names.
@@ -779,8 +790,9 @@ public Builder clearParent() {
      *
      *
      * 
-     * Required. The parent location where this [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource
-     * will be created.
+     * Required. The parent location where this
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be
+     * created.
      * Location names are formatted as `projects/<project-id>/locations/<region>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
      * for more details on Google Cloud resource names.
@@ -814,7 +826,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Required. The specification of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.
+     * Required. The specification of the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.
      * 
* * @@ -830,7 +843,8 @@ public boolean hasAzureCluster() { * * *
-     * Required. The specification of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.
+     * Required. The specification of the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.
      * 
* * @@ -852,7 +866,8 @@ public com.google.cloud.gkemulticloud.v1.AzureCluster getAzureCluster() { * * *
-     * Required. The specification of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.
+     * Required. The specification of the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.
      * 
* * @@ -876,7 +891,8 @@ public Builder setAzureCluster(com.google.cloud.gkemulticloud.v1.AzureCluster va * * *
-     * Required. The specification of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.
+     * Required. The specification of the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.
      * 
* * @@ -898,7 +914,8 @@ public Builder setAzureCluster( * * *
-     * Required. The specification of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.
+     * Required. The specification of the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.
      * 
* * @@ -926,7 +943,8 @@ public Builder mergeAzureCluster(com.google.cloud.gkemulticloud.v1.AzureCluster * * *
-     * Required. The specification of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.
+     * Required. The specification of the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.
      * 
* * @@ -948,7 +966,8 @@ public Builder clearAzureCluster() { * * *
-     * Required. The specification of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.
+     * Required. The specification of the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.
      * 
* * @@ -964,7 +983,8 @@ public com.google.cloud.gkemulticloud.v1.AzureCluster.Builder getAzureClusterBui * * *
-     * Required. The specification of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.
+     * Required. The specification of the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.
      * 
* * @@ -984,7 +1004,8 @@ public com.google.cloud.gkemulticloud.v1.AzureClusterOrBuilder getAzureClusterOr * * *
-     * Required. The specification of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.
+     * Required. The specification of the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.
      * 
* * @@ -1013,12 +1034,13 @@ public com.google.cloud.gkemulticloud.v1.AzureClusterOrBuilder getAzureClusterOr * * *
-     * Required. A client provided ID the resource. Must be unique within the parent
-     * resource.
-     * The provided ID will be part of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
-     * resource name formatted as
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name
+     * formatted as
      * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
-     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
      * 
* * string azure_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1040,12 +1062,13 @@ public java.lang.String getAzureClusterId() { * * *
-     * Required. A client provided ID the resource. Must be unique within the parent
-     * resource.
-     * The provided ID will be part of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
-     * resource name formatted as
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name
+     * formatted as
      * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
-     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
      * 
* * string azure_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1067,12 +1090,13 @@ public com.google.protobuf.ByteString getAzureClusterIdBytes() { * * *
-     * Required. A client provided ID the resource. Must be unique within the parent
-     * resource.
-     * The provided ID will be part of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
-     * resource name formatted as
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name
+     * formatted as
      * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
-     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
      * 
* * string azure_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1093,12 +1117,13 @@ public Builder setAzureClusterId(java.lang.String value) { * * *
-     * Required. A client provided ID the resource. Must be unique within the parent
-     * resource.
-     * The provided ID will be part of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
-     * resource name formatted as
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name
+     * formatted as
      * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
-     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
      * 
* * string azure_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1115,12 +1140,13 @@ public Builder clearAzureClusterId() { * * *
-     * Required. A client provided ID the resource. Must be unique within the parent
-     * resource.
-     * The provided ID will be part of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
-     * resource name formatted as
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name
+     * formatted as
      * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
-     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
      * 
* * string azure_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClusterRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClusterRequestOrBuilder.java index 1a908c0c77dd..06f5a45820be 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClusterRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClusterRequestOrBuilder.java @@ -27,8 +27,9 @@ public interface CreateAzureClusterRequestOrBuilder * * *
-   * Required. The parent location where this [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource
-   * will be created.
+   * Required. The parent location where this
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be
+   * created.
    * Location names are formatted as `projects/<project-id>/locations/<region>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
    * for more details on Google Cloud resource names.
@@ -45,8 +46,9 @@ public interface CreateAzureClusterRequestOrBuilder
    *
    *
    * 
-   * Required. The parent location where this [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource
-   * will be created.
+   * Required. The parent location where this
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be
+   * created.
    * Location names are formatted as `projects/<project-id>/locations/<region>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
    * for more details on Google Cloud resource names.
@@ -64,7 +66,8 @@ public interface CreateAzureClusterRequestOrBuilder
    *
    *
    * 
-   * Required. The specification of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.
+   * Required. The specification of the
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.
    * 
* * @@ -78,7 +81,8 @@ public interface CreateAzureClusterRequestOrBuilder * * *
-   * Required. The specification of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.
+   * Required. The specification of the
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.
    * 
* * @@ -92,7 +96,8 @@ public interface CreateAzureClusterRequestOrBuilder * * *
-   * Required. The specification of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.
+   * Required. The specification of the
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.
    * 
* * @@ -105,12 +110,13 @@ public interface CreateAzureClusterRequestOrBuilder * * *
-   * Required. A client provided ID the resource. Must be unique within the parent
-   * resource.
-   * The provided ID will be part of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
-   * resource name formatted as
+   * Required. A client provided ID the resource. Must be unique within the
+   * parent resource.
+   * The provided ID will be part of the
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name
+   * formatted as
    * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
-   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
    * 
* * string azure_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -122,12 +128,13 @@ public interface CreateAzureClusterRequestOrBuilder * * *
-   * Required. A client provided ID the resource. Must be unique within the parent
-   * resource.
-   * The provided ID will be part of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
-   * resource name formatted as
+   * Required. A client provided ID the resource. Must be unique within the
+   * parent resource.
+   * The provided ID will be part of the
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name
+   * formatted as
    * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
-   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
    * 
* * string azure_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureNodePoolRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureNodePoolRequest.java index 0a3f0a36c153..ee0c7fe39f7f 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureNodePoolRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureNodePoolRequest.java @@ -74,7 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource where this node pool will be created.
+   * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+   * resource where this node pool will be created.
    * Location names are formatted as `projects/<project-id>/locations/<region>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
    * for more details on Google Cloud resource names.
@@ -102,7 +103,8 @@ public java.lang.String getParent() {
    *
    *
    * 
-   * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource where this node pool will be created.
+   * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+   * resource where this node pool will be created.
    * Location names are formatted as `projects/<project-id>/locations/<region>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
    * for more details on Google Cloud resource names.
@@ -133,7 +135,8 @@ public com.google.protobuf.ByteString getParentBytes() {
    *
    *
    * 
-   * Required. The specification of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.
+   * Required. The specification of the
+   * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.
    * 
* * @@ -150,7 +153,8 @@ public boolean hasAzureNodePool() { * * *
-   * Required. The specification of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.
+   * Required. The specification of the
+   * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.
    * 
* * @@ -169,7 +173,8 @@ public com.google.cloud.gkemulticloud.v1.AzureNodePool getAzureNodePool() { * * *
-   * Required. The specification of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.
+   * Required. The specification of the
+   * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.
    * 
* * @@ -187,12 +192,13 @@ public com.google.cloud.gkemulticloud.v1.AzureNodePoolOrBuilder getAzureNodePool * * *
-   * Required. A client provided ID the resource. Must be unique within the parent
-   * resource.
-   * The provided ID will be part of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
-   * resource name formatted as
+   * Required. A client provided ID the resource. Must be unique within the
+   * parent resource.
+   * The provided ID will be part of the
+   * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name
+   * formatted as
    * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
-   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
    * 
* * string azure_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -215,12 +221,13 @@ public java.lang.String getAzureNodePoolId() { * * *
-   * Required. A client provided ID the resource. Must be unique within the parent
-   * resource.
-   * The provided ID will be part of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
-   * resource name formatted as
+   * Required. A client provided ID the resource. Must be unique within the
+   * parent resource.
+   * The provided ID will be part of the
+   * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name
+   * formatted as
    * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
-   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
    * 
* * string azure_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -674,7 +681,8 @@ public Builder mergeFrom( * * *
-     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource where this node pool will be created.
+     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resource where this node pool will be created.
      * Location names are formatted as `projects/<project-id>/locations/<region>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
      * for more details on Google Cloud resource names.
@@ -701,7 +709,8 @@ public java.lang.String getParent() {
      *
      *
      * 
-     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource where this node pool will be created.
+     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resource where this node pool will be created.
      * Location names are formatted as `projects/<project-id>/locations/<region>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
      * for more details on Google Cloud resource names.
@@ -728,7 +737,8 @@ public com.google.protobuf.ByteString getParentBytes() {
      *
      *
      * 
-     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource where this node pool will be created.
+     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resource where this node pool will be created.
      * Location names are formatted as `projects/<project-id>/locations/<region>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
      * for more details on Google Cloud resource names.
@@ -754,7 +764,8 @@ public Builder setParent(java.lang.String value) {
      *
      *
      * 
-     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource where this node pool will be created.
+     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resource where this node pool will be created.
      * Location names are formatted as `projects/<project-id>/locations/<region>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
      * for more details on Google Cloud resource names.
@@ -776,7 +787,8 @@ public Builder clearParent() {
      *
      *
      * 
-     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource where this node pool will be created.
+     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resource where this node pool will be created.
      * Location names are formatted as `projects/<project-id>/locations/<region>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
      * for more details on Google Cloud resource names.
@@ -810,7 +822,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Required. The specification of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.
+     * Required. The specification of the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.
      * 
* * @@ -826,7 +839,8 @@ public boolean hasAzureNodePool() { * * *
-     * Required. The specification of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.
+     * Required. The specification of the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.
      * 
* * @@ -848,7 +862,8 @@ public com.google.cloud.gkemulticloud.v1.AzureNodePool getAzureNodePool() { * * *
-     * Required. The specification of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.
+     * Required. The specification of the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.
      * 
* * @@ -872,7 +887,8 @@ public Builder setAzureNodePool(com.google.cloud.gkemulticloud.v1.AzureNodePool * * *
-     * Required. The specification of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.
+     * Required. The specification of the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.
      * 
* * @@ -894,7 +910,8 @@ public Builder setAzureNodePool( * * *
-     * Required. The specification of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.
+     * Required. The specification of the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.
      * 
* * @@ -922,7 +939,8 @@ public Builder mergeAzureNodePool(com.google.cloud.gkemulticloud.v1.AzureNodePoo * * *
-     * Required. The specification of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.
+     * Required. The specification of the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.
      * 
* * @@ -944,7 +962,8 @@ public Builder clearAzureNodePool() { * * *
-     * Required. The specification of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.
+     * Required. The specification of the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.
      * 
* * @@ -960,7 +979,8 @@ public com.google.cloud.gkemulticloud.v1.AzureNodePool.Builder getAzureNodePoolB * * *
-     * Required. The specification of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.
+     * Required. The specification of the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.
      * 
* * @@ -980,7 +1000,8 @@ public com.google.cloud.gkemulticloud.v1.AzureNodePoolOrBuilder getAzureNodePool * * *
-     * Required. The specification of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.
+     * Required. The specification of the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.
      * 
* * @@ -1009,12 +1030,13 @@ public com.google.cloud.gkemulticloud.v1.AzureNodePoolOrBuilder getAzureNodePool * * *
-     * Required. A client provided ID the resource. Must be unique within the parent
-     * resource.
-     * The provided ID will be part of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
-     * resource name formatted as
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name
+     * formatted as
      * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
-     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
      * 
* * string azure_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1036,12 +1058,13 @@ public java.lang.String getAzureNodePoolId() { * * *
-     * Required. A client provided ID the resource. Must be unique within the parent
-     * resource.
-     * The provided ID will be part of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
-     * resource name formatted as
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name
+     * formatted as
      * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
-     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
      * 
* * string azure_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1063,12 +1086,13 @@ public com.google.protobuf.ByteString getAzureNodePoolIdBytes() { * * *
-     * Required. A client provided ID the resource. Must be unique within the parent
-     * resource.
-     * The provided ID will be part of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
-     * resource name formatted as
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name
+     * formatted as
      * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
-     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
      * 
* * string azure_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1089,12 +1113,13 @@ public Builder setAzureNodePoolId(java.lang.String value) { * * *
-     * Required. A client provided ID the resource. Must be unique within the parent
-     * resource.
-     * The provided ID will be part of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
-     * resource name formatted as
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name
+     * formatted as
      * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
-     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
      * 
* * string azure_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1111,12 +1136,13 @@ public Builder clearAzureNodePoolId() { * * *
-     * Required. A client provided ID the resource. Must be unique within the parent
-     * resource.
-     * The provided ID will be part of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
-     * resource name formatted as
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name
+     * formatted as
      * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
-     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
      * 
* * string azure_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureNodePoolRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureNodePoolRequestOrBuilder.java index fde403829641..c7665c5e74e4 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureNodePoolRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureNodePoolRequestOrBuilder.java @@ -27,7 +27,8 @@ public interface CreateAzureNodePoolRequestOrBuilder * * *
-   * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource where this node pool will be created.
+   * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+   * resource where this node pool will be created.
    * Location names are formatted as `projects/<project-id>/locations/<region>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
    * for more details on Google Cloud resource names.
@@ -44,7 +45,8 @@ public interface CreateAzureNodePoolRequestOrBuilder
    *
    *
    * 
-   * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource where this node pool will be created.
+   * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+   * resource where this node pool will be created.
    * Location names are formatted as `projects/<project-id>/locations/<region>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
    * for more details on Google Cloud resource names.
@@ -62,7 +64,8 @@ public interface CreateAzureNodePoolRequestOrBuilder
    *
    *
    * 
-   * Required. The specification of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.
+   * Required. The specification of the
+   * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.
    * 
* * @@ -76,7 +79,8 @@ public interface CreateAzureNodePoolRequestOrBuilder * * *
-   * Required. The specification of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.
+   * Required. The specification of the
+   * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.
    * 
* * @@ -90,7 +94,8 @@ public interface CreateAzureNodePoolRequestOrBuilder * * *
-   * Required. The specification of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.
+   * Required. The specification of the
+   * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.
    * 
* * @@ -103,12 +108,13 @@ public interface CreateAzureNodePoolRequestOrBuilder * * *
-   * Required. A client provided ID the resource. Must be unique within the parent
-   * resource.
-   * The provided ID will be part of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
-   * resource name formatted as
+   * Required. A client provided ID the resource. Must be unique within the
+   * parent resource.
+   * The provided ID will be part of the
+   * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name
+   * formatted as
    * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
-   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
    * 
* * string azure_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -120,12 +126,13 @@ public interface CreateAzureNodePoolRequestOrBuilder * * *
-   * Required. A client provided ID the resource. Must be unique within the parent
-   * resource.
-   * The provided ID will be part of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
-   * resource name formatted as
+   * Required. A client provided ID the resource. Must be unique within the
+   * parent resource.
+   * The provided ID will be part of the
+   * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name
+   * formatted as
    * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
-   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters.
+   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
    * 
* * string azure_node_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAttachedClusterRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAttachedClusterRequest.java new file mode 100644 index 000000000000..82a8bbe49791 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAttachedClusterRequest.java @@ -0,0 +1,1181 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_service.proto + +package com.google.cloud.gkemulticloud.v1; + +/** + * + * + *
+ * Request message for `AttachedClusters.DeleteAttachedCluster` method.
+ * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest} + */ +public final class DeleteAttachedClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest) + DeleteAttachedClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteAttachedClusterRequest.newBuilder() to construct. + private DeleteAttachedClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteAttachedClusterRequest() { + name_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteAttachedClusterRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_DeleteAttachedClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_DeleteAttachedClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest.class, + com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name the
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to delete.
+   * `AttachedCluster` names are formatted as
+   * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on GCP resource names.
+   * 
+ * + * + * 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 the
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to delete.
+   * `AttachedCluster` names are formatted as
+   * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on GCP resource names.
+   * 
+ * + * + * 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 VALIDATE_ONLY_FIELD_NUMBER = 2; + private boolean validateOnly_; + /** + * + * + *
+   * If set, only validate the request, but do not actually delete the resource.
+   * 
+ * + * bool validate_only = 2; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int ALLOW_MISSING_FIELD_NUMBER = 3; + private boolean allowMissing_; + /** + * + * + *
+   * If set to true, and the
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * is not found, the request will succeed but no action will be taken on the
+   * server and a completed [Operation][google.longrunning.Operation] will be
+   * returned.
+   * Useful for idempotent deletion.
+   * 
+ * + * bool allow_missing = 3; + * + * @return The allowMissing. + */ + @java.lang.Override + public boolean getAllowMissing() { + return allowMissing_; + } + + public static final int IGNORE_ERRORS_FIELD_NUMBER = 5; + private boolean ignoreErrors_; + /** + * + * + *
+   * If set to true, the deletion of
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * will succeed even if errors occur during deleting in cluster resources.
+   * Using this parameter may result in orphaned resources in the cluster.
+   * 
+ * + * bool ignore_errors = 5; + * + * @return The ignoreErrors. + */ + @java.lang.Override + public boolean getIgnoreErrors() { + return ignoreErrors_; + } + + public static final int ETAG_FIELD_NUMBER = 4; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * The current etag of the
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster].
+   * Allows clients to perform deletions through optimistic concurrency control.
+   * If the provided etag does not match the current etag of the cluster,
+   * the request will fail and an ABORTED error will be returned.
+   * 
+ * + * string etag = 4; + * + * @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; + } + } + /** + * + * + *
+   * The current etag of the
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster].
+   * Allows clients to perform deletions through optimistic concurrency control.
+   * If the provided etag does not match the current etag of the cluster,
+   * the request will fail and an ABORTED error will be returned.
+   * 
+ * + * string etag = 4; + * + * @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 (validateOnly_ != false) { + output.writeBool(2, validateOnly_); + } + if (allowMissing_ != false) { + output.writeBool(3, allowMissing_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, etag_); + } + if (ignoreErrors_ != false) { + output.writeBool(5, ignoreErrors_); + } + 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 (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + } + if (allowMissing_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, allowMissing_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, etag_); + } + if (ignoreErrors_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, ignoreErrors_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest other = + (com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getAllowMissing() != other.getAllowMissing()) return false; + if (getIgnoreErrors() != other.getIgnoreErrors()) 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) + VALIDATE_ONLY_FIELD_NUMBER; + 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_ERRORS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreErrors()); + 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.gkemulticloud.v1.DeleteAttachedClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 `AttachedClusters.DeleteAttachedCluster` method.
+   * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest) + com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_DeleteAttachedClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_DeleteAttachedClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest.class, + com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + validateOnly_ = false; + + allowMissing_ = false; + + ignoreErrors_ = false; + + etag_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_DeleteAttachedClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest + getDefaultInstanceForType() { + return com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest build() { + com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest buildPartial() { + com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest result = + new com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest(this); + result.name_ = name_; + result.validateOnly_ = validateOnly_; + result.allowMissing_ = allowMissing_; + result.ignoreErrors_ = ignoreErrors_; + result.etag_ = etag_; + 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.gkemulticloud.v1.DeleteAttachedClusterRequest) { + return mergeFrom((com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest other) { + if (other + == com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (other.getAllowMissing() != false) { + setAllowMissing(other.getAllowMissing()); + } + if (other.getIgnoreErrors() != false) { + setIgnoreErrors(other.getIgnoreErrors()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + 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(); + + break; + } // case 10 + case 16: + { + validateOnly_ = input.readBool(); + + break; + } // case 16 + case 24: + { + allowMissing_ = input.readBool(); + + break; + } // case 24 + case 34: + { + etag_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 40: + { + ignoreErrors_ = input.readBool(); + + 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 java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to delete.
+     * `AttachedCluster` names are formatted as
+     * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on GCP resource names.
+     * 
+ * + * + * 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 the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to delete.
+     * `AttachedCluster` names are formatted as
+     * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on GCP resource names.
+     * 
+ * + * + * 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 the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to delete.
+     * `AttachedCluster` names are formatted as
+     * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on GCP resource names.
+     * 
+ * + * + * 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to delete.
+     * `AttachedCluster` names are formatted as
+     * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on GCP resource names.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to delete.
+     * `AttachedCluster` names are formatted as
+     * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on GCP resource names.
+     * 
+ * + * + * 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; + onChanged(); + return this; + } + + private boolean validateOnly_; + /** + * + * + *
+     * If set, only validate the request, but do not actually delete the resource.
+     * 
+ * + * bool validate_only = 2; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + /** + * + * + *
+     * If set, only validate the request, but do not actually delete the resource.
+     * 
+ * + * bool validate_only = 2; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If set, only validate the request, but do not actually delete the resource.
+     * 
+ * + * bool validate_only = 2; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } + + private boolean allowMissing_; + /** + * + * + *
+     * If set to true, and the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * is not found, the request will succeed but no action will be taken on the
+     * server and a completed [Operation][google.longrunning.Operation] will be
+     * returned.
+     * Useful for idempotent deletion.
+     * 
+ * + * bool allow_missing = 3; + * + * @return The allowMissing. + */ + @java.lang.Override + public boolean getAllowMissing() { + return allowMissing_; + } + /** + * + * + *
+     * If set to true, and the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * is not found, the request will succeed but no action will be taken on the
+     * server and a completed [Operation][google.longrunning.Operation] will be
+     * returned.
+     * Useful for idempotent deletion.
+     * 
+ * + * bool allow_missing = 3; + * + * @param value The allowMissing to set. + * @return This builder for chaining. + */ + public Builder setAllowMissing(boolean value) { + + allowMissing_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If set to true, and the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * is not found, the request will succeed but no action will be taken on the
+     * server and a completed [Operation][google.longrunning.Operation] will be
+     * returned.
+     * Useful for idempotent deletion.
+     * 
+ * + * bool allow_missing = 3; + * + * @return This builder for chaining. + */ + public Builder clearAllowMissing() { + + allowMissing_ = false; + onChanged(); + return this; + } + + private boolean ignoreErrors_; + /** + * + * + *
+     * If set to true, the deletion of
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * will succeed even if errors occur during deleting in cluster resources.
+     * Using this parameter may result in orphaned resources in the cluster.
+     * 
+ * + * bool ignore_errors = 5; + * + * @return The ignoreErrors. + */ + @java.lang.Override + public boolean getIgnoreErrors() { + return ignoreErrors_; + } + /** + * + * + *
+     * If set to true, the deletion of
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * will succeed even if errors occur during deleting in cluster resources.
+     * Using this parameter may result in orphaned resources in the cluster.
+     * 
+ * + * bool ignore_errors = 5; + * + * @param value The ignoreErrors to set. + * @return This builder for chaining. + */ + public Builder setIgnoreErrors(boolean value) { + + ignoreErrors_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If set to true, the deletion of
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * will succeed even if errors occur during deleting in cluster resources.
+     * Using this parameter may result in orphaned resources in the cluster.
+     * 
+ * + * bool ignore_errors = 5; + * + * @return This builder for chaining. + */ + public Builder clearIgnoreErrors() { + + ignoreErrors_ = false; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * The current etag of the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster].
+     * Allows clients to perform deletions through optimistic concurrency control.
+     * If the provided etag does not match the current etag of the cluster,
+     * the request will fail and an ABORTED error will be returned.
+     * 
+ * + * string etag = 4; + * + * @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; + } + } + /** + * + * + *
+     * The current etag of the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster].
+     * Allows clients to perform deletions through optimistic concurrency control.
+     * If the provided etag does not match the current etag of the cluster,
+     * the request will fail and an ABORTED error will be returned.
+     * 
+ * + * string etag = 4; + * + * @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; + } + } + /** + * + * + *
+     * The current etag of the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster].
+     * Allows clients to perform deletions through optimistic concurrency control.
+     * If the provided etag does not match the current etag of the cluster,
+     * the request will fail and an ABORTED error will be returned.
+     * 
+ * + * string etag = 4; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * The current etag of the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster].
+     * Allows clients to perform deletions through optimistic concurrency control.
+     * If the provided etag does not match the current etag of the cluster,
+     * the request will fail and an ABORTED error will be returned.
+     * 
+ * + * string etag = 4; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + + etag_ = getDefaultInstance().getEtag(); + onChanged(); + return this; + } + /** + * + * + *
+     * The current etag of the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster].
+     * Allows clients to perform deletions through optimistic concurrency control.
+     * If the provided etag does not match the current etag of the cluster,
+     * the request will fail and an ABORTED error will be returned.
+     * 
+ * + * string etag = 4; + * + * @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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest) + private static final com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest(); + } + + public static com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAttachedClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAttachedClusterRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAttachedClusterRequestOrBuilder.java new file mode 100644 index 000000000000..c11c8a507002 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAttachedClusterRequestOrBuilder.java @@ -0,0 +1,144 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_service.proto + +package com.google.cloud.gkemulticloud.v1; + +public interface DeleteAttachedClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name the
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to delete.
+   * `AttachedCluster` names are formatted as
+   * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on GCP resource names.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name the
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to delete.
+   * `AttachedCluster` names are formatted as
+   * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on GCP resource names.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * If set, only validate the request, but do not actually delete the resource.
+   * 
+ * + * bool validate_only = 2; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * If set to true, and the
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * is not found, the request will succeed but no action will be taken on the
+   * server and a completed [Operation][google.longrunning.Operation] will be
+   * returned.
+   * Useful for idempotent deletion.
+   * 
+ * + * bool allow_missing = 3; + * + * @return The allowMissing. + */ + boolean getAllowMissing(); + + /** + * + * + *
+   * If set to true, the deletion of
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * will succeed even if errors occur during deleting in cluster resources.
+   * Using this parameter may result in orphaned resources in the cluster.
+   * 
+ * + * bool ignore_errors = 5; + * + * @return The ignoreErrors. + */ + boolean getIgnoreErrors(); + + /** + * + * + *
+   * The current etag of the
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster].
+   * Allows clients to perform deletions through optimistic concurrency control.
+   * If the provided etag does not match the current etag of the cluster,
+   * the request will fail and an ABORTED error will be returned.
+   * 
+ * + * string etag = 4; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * The current etag of the
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster].
+   * Allows clients to perform deletions through optimistic concurrency control.
+   * If the provided etag does not match the current etag of the cluster,
+   * the request will fail and an ABORTED error will be returned.
+   * 
+ * + * string etag = 4; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsClusterRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsClusterRequest.java index 239d22313e18..a79c6eeed6e3 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsClusterRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsClusterRequest.java @@ -74,7 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The resource name the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete.
+   * Required. The resource name the
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete.
    * `AwsCluster` names are formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -103,7 +104,8 @@ public java.lang.String getName() {
    *
    *
    * 
-   * Required. The resource name the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete.
+   * Required. The resource name the
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete.
    * `AwsCluster` names are formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -153,9 +155,10 @@ public boolean getValidateOnly() {
    *
    *
    * 
-   * If set to true, and the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not found,
-   * the request will succeed but no action will be taken on the server and a
-   * completed [Operation][google.longrunning.Operation] will be returned.
+   * If set to true, and the
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not
+   * found, the request will succeed but no action will be taken on the server
+   * and a completed [Operation][google.longrunning.Operation] will be returned.
    * Useful for idempotent deletion.
    * 
* @@ -174,7 +177,8 @@ public boolean getAllowMissing() { * * *
-   * The current etag of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
+   * The current etag of the
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
    * Allows clients to perform deletions through optimistic concurrency control.
    * If the provided etag does not match the current etag of the cluster,
    * the request will fail and an ABORTED error will be returned.
@@ -200,7 +204,8 @@ public java.lang.String getEtag() {
    *
    *
    * 
-   * The current etag of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
+   * The current etag of the
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
    * Allows clients to perform deletions through optimistic concurrency control.
    * If the provided etag does not match the current etag of the cluster,
    * the request will fail and an ABORTED error will be returned.
@@ -623,7 +628,8 @@ public Builder mergeFrom(
      *
      *
      * 
-     * Required. The resource name the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete.
+     * Required. The resource name the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete.
      * `AwsCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -651,7 +657,8 @@ public java.lang.String getName() {
      *
      *
      * 
-     * Required. The resource name the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete.
+     * Required. The resource name the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete.
      * `AwsCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -679,7 +686,8 @@ public com.google.protobuf.ByteString getNameBytes() {
      *
      *
      * 
-     * Required. The resource name the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete.
+     * Required. The resource name the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete.
      * `AwsCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -706,7 +714,8 @@ public Builder setName(java.lang.String value) {
      *
      *
      * 
-     * Required. The resource name the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete.
+     * Required. The resource name the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete.
      * `AwsCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -729,7 +738,8 @@ public Builder clearName() {
      *
      *
      * 
-     * Required. The resource name the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete.
+     * Required. The resource name the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete.
      * `AwsCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -811,9 +821,10 @@ public Builder clearValidateOnly() {
      *
      *
      * 
-     * If set to true, and the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not found,
-     * the request will succeed but no action will be taken on the server and a
-     * completed [Operation][google.longrunning.Operation] will be returned.
+     * If set to true, and the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not
+     * found, the request will succeed but no action will be taken on the server
+     * and a completed [Operation][google.longrunning.Operation] will be returned.
      * Useful for idempotent deletion.
      * 
* @@ -829,9 +840,10 @@ public boolean getAllowMissing() { * * *
-     * If set to true, and the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not found,
-     * the request will succeed but no action will be taken on the server and a
-     * completed [Operation][google.longrunning.Operation] will be returned.
+     * If set to true, and the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not
+     * found, the request will succeed but no action will be taken on the server
+     * and a completed [Operation][google.longrunning.Operation] will be returned.
      * Useful for idempotent deletion.
      * 
* @@ -850,9 +862,10 @@ public Builder setAllowMissing(boolean value) { * * *
-     * If set to true, and the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not found,
-     * the request will succeed but no action will be taken on the server and a
-     * completed [Operation][google.longrunning.Operation] will be returned.
+     * If set to true, and the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not
+     * found, the request will succeed but no action will be taken on the server
+     * and a completed [Operation][google.longrunning.Operation] will be returned.
      * Useful for idempotent deletion.
      * 
* @@ -872,7 +885,8 @@ public Builder clearAllowMissing() { * * *
-     * The current etag of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
+     * The current etag of the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
      * Allows clients to perform deletions through optimistic concurrency control.
      * If the provided etag does not match the current etag of the cluster,
      * the request will fail and an ABORTED error will be returned.
@@ -897,7 +911,8 @@ public java.lang.String getEtag() {
      *
      *
      * 
-     * The current etag of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
+     * The current etag of the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
      * Allows clients to perform deletions through optimistic concurrency control.
      * If the provided etag does not match the current etag of the cluster,
      * the request will fail and an ABORTED error will be returned.
@@ -922,7 +937,8 @@ public com.google.protobuf.ByteString getEtagBytes() {
      *
      *
      * 
-     * The current etag of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
+     * The current etag of the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
      * Allows clients to perform deletions through optimistic concurrency control.
      * If the provided etag does not match the current etag of the cluster,
      * the request will fail and an ABORTED error will be returned.
@@ -946,7 +962,8 @@ public Builder setEtag(java.lang.String value) {
      *
      *
      * 
-     * The current etag of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
+     * The current etag of the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
      * Allows clients to perform deletions through optimistic concurrency control.
      * If the provided etag does not match the current etag of the cluster,
      * the request will fail and an ABORTED error will be returned.
@@ -966,7 +983,8 @@ public Builder clearEtag() {
      *
      *
      * 
-     * The current etag of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
+     * The current etag of the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
      * Allows clients to perform deletions through optimistic concurrency control.
      * If the provided etag does not match the current etag of the cluster,
      * the request will fail and an ABORTED error will be returned.
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsClusterRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsClusterRequestOrBuilder.java
index 8ccdb49daace..b00c7382acee 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsClusterRequestOrBuilder.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsClusterRequestOrBuilder.java
@@ -27,7 +27,8 @@ public interface DeleteAwsClusterRequestOrBuilder
    *
    *
    * 
-   * Required. The resource name the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete.
+   * Required. The resource name the
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete.
    * `AwsCluster` names are formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -45,7 +46,8 @@ public interface DeleteAwsClusterRequestOrBuilder
    *
    *
    * 
-   * Required. The resource name the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete.
+   * Required. The resource name the
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete.
    * `AwsCluster` names are formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -77,9 +79,10 @@ public interface DeleteAwsClusterRequestOrBuilder
    *
    *
    * 
-   * If set to true, and the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not found,
-   * the request will succeed but no action will be taken on the server and a
-   * completed [Operation][google.longrunning.Operation] will be returned.
+   * If set to true, and the
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not
+   * found, the request will succeed but no action will be taken on the server
+   * and a completed [Operation][google.longrunning.Operation] will be returned.
    * Useful for idempotent deletion.
    * 
* @@ -93,7 +96,8 @@ public interface DeleteAwsClusterRequestOrBuilder * * *
-   * The current etag of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
+   * The current etag of the
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
    * Allows clients to perform deletions through optimistic concurrency control.
    * If the provided etag does not match the current etag of the cluster,
    * the request will fail and an ABORTED error will be returned.
@@ -108,7 +112,8 @@ public interface DeleteAwsClusterRequestOrBuilder
    *
    *
    * 
-   * The current etag of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
+   * The current etag of the
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
    * Allows clients to perform deletions through optimistic concurrency control.
    * If the provided etag does not match the current etag of the cluster,
    * the request will fail and an ABORTED error will be returned.
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsNodePoolRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsNodePoolRequest.java
index f036b44cf38d..1788e5581baa 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsNodePoolRequest.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsNodePoolRequest.java
@@ -22,7 +22,7 @@
  *
  *
  * 
- * Request message for `AwsClusters.DeleteNodePool` method.
+ * Request message for `AwsClusters.DeleteAwsNodePool` method.
  * 
* * Protobuf type {@code google.cloud.gkemulticloud.v1.DeleteAwsNodePoolRequest} @@ -74,7 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The resource name the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete.
+   * Required. The resource name the
+   * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete.
    * `AwsNodePool` names are formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -103,7 +104,8 @@ public java.lang.String getName() {
    *
    *
    * 
-   * Required. The resource name the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete.
+   * Required. The resource name the
+   * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete.
    * `AwsNodePool` names are formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -154,9 +156,10 @@ public boolean getValidateOnly() {
    *
    *
    * 
-   * If set to true, and the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not found,
-   * the request will succeed but no action will be taken on the server and a
-   * completed [Operation][google.longrunning.Operation] will be returned.
+   * If set to true, and the
+   * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not
+   * found, the request will succeed but no action will be taken on the server
+   * and a completed [Operation][google.longrunning.Operation] will be returned.
    * Useful for idempotent deletion.
    * 
* @@ -175,7 +178,8 @@ public boolean getAllowMissing() { * * *
-   * The current ETag of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool].
+   * The current ETag of the
+   * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool].
    * Allows clients to perform deletions through optimistic concurrency control.
    * If the provided ETag does not match the current etag of the node pool,
    * the request will fail and an ABORTED error will be returned.
@@ -201,7 +205,8 @@ public java.lang.String getEtag() {
    *
    *
    * 
-   * The current ETag of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool].
+   * The current ETag of the
+   * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool].
    * Allows clients to perform deletions through optimistic concurrency control.
    * If the provided ETag does not match the current etag of the node pool,
    * the request will fail and an ABORTED error will be returned.
@@ -415,7 +420,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    *
    * 
-   * Request message for `AwsClusters.DeleteNodePool` method.
+   * Request message for `AwsClusters.DeleteAwsNodePool` method.
    * 
* * Protobuf type {@code google.cloud.gkemulticloud.v1.DeleteAwsNodePoolRequest} @@ -624,7 +629,8 @@ public Builder mergeFrom( * * *
-     * Required. The resource name the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete.
+     * Required. The resource name the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete.
      * `AwsNodePool` names are formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -652,7 +658,8 @@ public java.lang.String getName() {
      *
      *
      * 
-     * Required. The resource name the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete.
+     * Required. The resource name the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete.
      * `AwsNodePool` names are formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -680,7 +687,8 @@ public com.google.protobuf.ByteString getNameBytes() {
      *
      *
      * 
-     * Required. The resource name the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete.
+     * Required. The resource name the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete.
      * `AwsNodePool` names are formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -707,7 +715,8 @@ public Builder setName(java.lang.String value) {
      *
      *
      * 
-     * Required. The resource name the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete.
+     * Required. The resource name the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete.
      * `AwsNodePool` names are formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -730,7 +739,8 @@ public Builder clearName() {
      *
      *
      * 
-     * Required. The resource name the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete.
+     * Required. The resource name the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete.
      * `AwsNodePool` names are formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -815,9 +825,10 @@ public Builder clearValidateOnly() {
      *
      *
      * 
-     * If set to true, and the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not found,
-     * the request will succeed but no action will be taken on the server and a
-     * completed [Operation][google.longrunning.Operation] will be returned.
+     * If set to true, and the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not
+     * found, the request will succeed but no action will be taken on the server
+     * and a completed [Operation][google.longrunning.Operation] will be returned.
      * Useful for idempotent deletion.
      * 
* @@ -833,9 +844,10 @@ public boolean getAllowMissing() { * * *
-     * If set to true, and the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not found,
-     * the request will succeed but no action will be taken on the server and a
-     * completed [Operation][google.longrunning.Operation] will be returned.
+     * If set to true, and the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not
+     * found, the request will succeed but no action will be taken on the server
+     * and a completed [Operation][google.longrunning.Operation] will be returned.
      * Useful for idempotent deletion.
      * 
* @@ -854,9 +866,10 @@ public Builder setAllowMissing(boolean value) { * * *
-     * If set to true, and the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not found,
-     * the request will succeed but no action will be taken on the server and a
-     * completed [Operation][google.longrunning.Operation] will be returned.
+     * If set to true, and the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not
+     * found, the request will succeed but no action will be taken on the server
+     * and a completed [Operation][google.longrunning.Operation] will be returned.
      * Useful for idempotent deletion.
      * 
* @@ -876,7 +889,8 @@ public Builder clearAllowMissing() { * * *
-     * The current ETag of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool].
+     * The current ETag of the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool].
      * Allows clients to perform deletions through optimistic concurrency control.
      * If the provided ETag does not match the current etag of the node pool,
      * the request will fail and an ABORTED error will be returned.
@@ -901,7 +915,8 @@ public java.lang.String getEtag() {
      *
      *
      * 
-     * The current ETag of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool].
+     * The current ETag of the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool].
      * Allows clients to perform deletions through optimistic concurrency control.
      * If the provided ETag does not match the current etag of the node pool,
      * the request will fail and an ABORTED error will be returned.
@@ -926,7 +941,8 @@ public com.google.protobuf.ByteString getEtagBytes() {
      *
      *
      * 
-     * The current ETag of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool].
+     * The current ETag of the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool].
      * Allows clients to perform deletions through optimistic concurrency control.
      * If the provided ETag does not match the current etag of the node pool,
      * the request will fail and an ABORTED error will be returned.
@@ -950,7 +966,8 @@ public Builder setEtag(java.lang.String value) {
      *
      *
      * 
-     * The current ETag of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool].
+     * The current ETag of the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool].
      * Allows clients to perform deletions through optimistic concurrency control.
      * If the provided ETag does not match the current etag of the node pool,
      * the request will fail and an ABORTED error will be returned.
@@ -970,7 +987,8 @@ public Builder clearEtag() {
      *
      *
      * 
-     * The current ETag of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool].
+     * The current ETag of the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool].
      * Allows clients to perform deletions through optimistic concurrency control.
      * If the provided ETag does not match the current etag of the node pool,
      * the request will fail and an ABORTED error will be returned.
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsNodePoolRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsNodePoolRequestOrBuilder.java
index 6cd8cb39f3ae..55100786eb95 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsNodePoolRequestOrBuilder.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsNodePoolRequestOrBuilder.java
@@ -27,7 +27,8 @@ public interface DeleteAwsNodePoolRequestOrBuilder
    *
    *
    * 
-   * Required. The resource name the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete.
+   * Required. The resource name the
+   * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete.
    * `AwsNodePool` names are formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -45,7 +46,8 @@ public interface DeleteAwsNodePoolRequestOrBuilder
    *
    *
    * 
-   * Required. The resource name the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete.
+   * Required. The resource name the
+   * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete.
    * `AwsNodePool` names are formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -78,9 +80,10 @@ public interface DeleteAwsNodePoolRequestOrBuilder
    *
    *
    * 
-   * If set to true, and the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not found,
-   * the request will succeed but no action will be taken on the server and a
-   * completed [Operation][google.longrunning.Operation] will be returned.
+   * If set to true, and the
+   * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not
+   * found, the request will succeed but no action will be taken on the server
+   * and a completed [Operation][google.longrunning.Operation] will be returned.
    * Useful for idempotent deletion.
    * 
* @@ -94,7 +97,8 @@ public interface DeleteAwsNodePoolRequestOrBuilder * * *
-   * The current ETag of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool].
+   * The current ETag of the
+   * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool].
    * Allows clients to perform deletions through optimistic concurrency control.
    * If the provided ETag does not match the current etag of the node pool,
    * the request will fail and an ABORTED error will be returned.
@@ -109,7 +113,8 @@ public interface DeleteAwsNodePoolRequestOrBuilder
    *
    *
    * 
-   * The current ETag of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool].
+   * The current ETag of the
+   * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool].
    * Allows clients to perform deletions through optimistic concurrency control.
    * If the provided ETag does not match the current etag of the node pool,
    * the request will fail and an ABORTED error will be returned.
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClientRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClientRequest.java
index cb26c1847667..4d0e21e7e5bc 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClientRequest.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClientRequest.java
@@ -73,8 +73,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    *
    * 
-   * Required. The resource name the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete.
-   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as
+   * Required. The resource name the
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete.
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are
+   * formatted as
    * `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
    * for more details on Google Cloud resource names.
@@ -102,8 +104,10 @@ public java.lang.String getName() {
    *
    *
    * 
-   * Required. The resource name the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete.
-   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as
+   * Required. The resource name the
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete.
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are
+   * formatted as
    * `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
    * for more details on Google Cloud resource names.
@@ -134,9 +138,10 @@ public com.google.protobuf.ByteString getNameBytes() {
    *
    *
    * 
-   * If set to true, and the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not found,
-   * the request will succeed but no action will be taken on the server and a
-   * completed [Operation][google.longrunning.Operation] will be returned.
+   * If set to true, and the
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not
+   * found, the request will succeed but no action will be taken on the server
+   * and a completed [Operation][google.longrunning.Operation] will be returned.
    * Useful for idempotent deletion.
    * 
* @@ -545,8 +550,10 @@ public Builder mergeFrom( * * *
-     * Required. The resource name the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete.
-     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as
+     * Required. The resource name the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete.
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are
+     * formatted as
      * `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
      * for more details on Google Cloud resource names.
@@ -573,8 +580,10 @@ public java.lang.String getName() {
      *
      *
      * 
-     * Required. The resource name the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete.
-     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as
+     * Required. The resource name the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete.
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are
+     * formatted as
      * `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
      * for more details on Google Cloud resource names.
@@ -601,8 +610,10 @@ public com.google.protobuf.ByteString getNameBytes() {
      *
      *
      * 
-     * Required. The resource name the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete.
-     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as
+     * Required. The resource name the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete.
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are
+     * formatted as
      * `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
      * for more details on Google Cloud resource names.
@@ -628,8 +639,10 @@ public Builder setName(java.lang.String value) {
      *
      *
      * 
-     * Required. The resource name the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete.
-     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as
+     * Required. The resource name the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete.
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are
+     * formatted as
      * `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
      * for more details on Google Cloud resource names.
@@ -651,8 +664,10 @@ public Builder clearName() {
      *
      *
      * 
-     * Required. The resource name the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete.
-     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as
+     * Required. The resource name the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete.
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are
+     * formatted as
      * `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
      * for more details on Google Cloud resource names.
@@ -681,9 +696,10 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * If set to true, and the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not found,
-     * the request will succeed but no action will be taken on the server and a
-     * completed [Operation][google.longrunning.Operation] will be returned.
+     * If set to true, and the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not
+     * found, the request will succeed but no action will be taken on the server
+     * and a completed [Operation][google.longrunning.Operation] will be returned.
      * Useful for idempotent deletion.
      * 
* @@ -699,9 +715,10 @@ public boolean getAllowMissing() { * * *
-     * If set to true, and the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not found,
-     * the request will succeed but no action will be taken on the server and a
-     * completed [Operation][google.longrunning.Operation] will be returned.
+     * If set to true, and the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not
+     * found, the request will succeed but no action will be taken on the server
+     * and a completed [Operation][google.longrunning.Operation] will be returned.
      * Useful for idempotent deletion.
      * 
* @@ -720,9 +737,10 @@ public Builder setAllowMissing(boolean value) { * * *
-     * If set to true, and the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not found,
-     * the request will succeed but no action will be taken on the server and a
-     * completed [Operation][google.longrunning.Operation] will be returned.
+     * If set to true, and the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not
+     * found, the request will succeed but no action will be taken on the server
+     * and a completed [Operation][google.longrunning.Operation] will be returned.
      * Useful for idempotent deletion.
      * 
* diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClientRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClientRequestOrBuilder.java index 754a1feb7bf2..cb0c94c476b7 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClientRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClientRequestOrBuilder.java @@ -27,8 +27,10 @@ public interface DeleteAzureClientRequestOrBuilder * * *
-   * Required. The resource name the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete.
-   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as
+   * Required. The resource name the
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete.
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are
+   * formatted as
    * `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
    * for more details on Google Cloud resource names.
@@ -45,8 +47,10 @@ public interface DeleteAzureClientRequestOrBuilder
    *
    *
    * 
-   * Required. The resource name the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete.
-   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as
+   * Required. The resource name the
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete.
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are
+   * formatted as
    * `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
    * for more details on Google Cloud resource names.
@@ -64,9 +68,10 @@ public interface DeleteAzureClientRequestOrBuilder
    *
    *
    * 
-   * If set to true, and the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not found,
-   * the request will succeed but no action will be taken on the server and a
-   * completed [Operation][google.longrunning.Operation] will be returned.
+   * If set to true, and the
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not
+   * found, the request will succeed but no action will be taken on the server
+   * and a completed [Operation][google.longrunning.Operation] will be returned.
    * Useful for idempotent deletion.
    * 
* diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClusterRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClusterRequest.java index e4a09232aaf8..d0c6c4d676e9 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClusterRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClusterRequest.java @@ -74,7 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The resource name the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete.
+   * Required. The resource name the
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete.
    * `AzureCluster` names are formatted as
    * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -103,7 +104,8 @@ public java.lang.String getName() {
    *
    *
    * 
-   * Required. The resource name the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete.
+   * Required. The resource name the
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete.
    * `AzureCluster` names are formatted as
    * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -135,9 +137,10 @@ public com.google.protobuf.ByteString getNameBytes() {
    *
    *
    * 
-   * If set to true, and the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not found,
-   * the request will succeed but no action will be taken on the server and a
-   * completed [Operation][google.longrunning.Operation] will be returned.
+   * If set to true, and the
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not
+   * found, the request will succeed but no action will be taken on the server
+   * and a completed [Operation][google.longrunning.Operation] will be returned.
    * Useful for idempotent deletion.
    * 
* @@ -174,7 +177,8 @@ public boolean getValidateOnly() { * * *
-   * The current etag of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
+   * The current etag of the
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
    * Allows clients to perform deletions through optimistic concurrency control.
    * If the provided etag does not match the current etag of the cluster,
    * the request will fail and an ABORTED error will be returned.
@@ -200,7 +204,8 @@ public java.lang.String getEtag() {
    *
    *
    * 
-   * The current etag of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
+   * The current etag of the
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
    * Allows clients to perform deletions through optimistic concurrency control.
    * If the provided etag does not match the current etag of the cluster,
    * the request will fail and an ABORTED error will be returned.
@@ -623,7 +628,8 @@ public Builder mergeFrom(
      *
      *
      * 
-     * Required. The resource name the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete.
+     * Required. The resource name the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete.
      * `AzureCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -651,7 +657,8 @@ public java.lang.String getName() {
      *
      *
      * 
-     * Required. The resource name the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete.
+     * Required. The resource name the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete.
      * `AzureCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -679,7 +686,8 @@ public com.google.protobuf.ByteString getNameBytes() {
      *
      *
      * 
-     * Required. The resource name the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete.
+     * Required. The resource name the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete.
      * `AzureCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -706,7 +714,8 @@ public Builder setName(java.lang.String value) {
      *
      *
      * 
-     * Required. The resource name the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete.
+     * Required. The resource name the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete.
      * `AzureCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -729,7 +738,8 @@ public Builder clearName() {
      *
      *
      * 
-     * Required. The resource name the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete.
+     * Required. The resource name the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete.
      * `AzureCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -759,9 +769,10 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * If set to true, and the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not found,
-     * the request will succeed but no action will be taken on the server and a
-     * completed [Operation][google.longrunning.Operation] will be returned.
+     * If set to true, and the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not
+     * found, the request will succeed but no action will be taken on the server
+     * and a completed [Operation][google.longrunning.Operation] will be returned.
      * Useful for idempotent deletion.
      * 
* @@ -777,9 +788,10 @@ public boolean getAllowMissing() { * * *
-     * If set to true, and the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not found,
-     * the request will succeed but no action will be taken on the server and a
-     * completed [Operation][google.longrunning.Operation] will be returned.
+     * If set to true, and the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not
+     * found, the request will succeed but no action will be taken on the server
+     * and a completed [Operation][google.longrunning.Operation] will be returned.
      * Useful for idempotent deletion.
      * 
* @@ -798,9 +810,10 @@ public Builder setAllowMissing(boolean value) { * * *
-     * If set to true, and the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not found,
-     * the request will succeed but no action will be taken on the server and a
-     * completed [Operation][google.longrunning.Operation] will be returned.
+     * If set to true, and the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not
+     * found, the request will succeed but no action will be taken on the server
+     * and a completed [Operation][google.longrunning.Operation] will be returned.
      * Useful for idempotent deletion.
      * 
* @@ -872,7 +885,8 @@ public Builder clearValidateOnly() { * * *
-     * The current etag of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
+     * The current etag of the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
      * Allows clients to perform deletions through optimistic concurrency control.
      * If the provided etag does not match the current etag of the cluster,
      * the request will fail and an ABORTED error will be returned.
@@ -897,7 +911,8 @@ public java.lang.String getEtag() {
      *
      *
      * 
-     * The current etag of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
+     * The current etag of the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
      * Allows clients to perform deletions through optimistic concurrency control.
      * If the provided etag does not match the current etag of the cluster,
      * the request will fail and an ABORTED error will be returned.
@@ -922,7 +937,8 @@ public com.google.protobuf.ByteString getEtagBytes() {
      *
      *
      * 
-     * The current etag of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
+     * The current etag of the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
      * Allows clients to perform deletions through optimistic concurrency control.
      * If the provided etag does not match the current etag of the cluster,
      * the request will fail and an ABORTED error will be returned.
@@ -946,7 +962,8 @@ public Builder setEtag(java.lang.String value) {
      *
      *
      * 
-     * The current etag of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
+     * The current etag of the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
      * Allows clients to perform deletions through optimistic concurrency control.
      * If the provided etag does not match the current etag of the cluster,
      * the request will fail and an ABORTED error will be returned.
@@ -966,7 +983,8 @@ public Builder clearEtag() {
      *
      *
      * 
-     * The current etag of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
+     * The current etag of the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
      * Allows clients to perform deletions through optimistic concurrency control.
      * If the provided etag does not match the current etag of the cluster,
      * the request will fail and an ABORTED error will be returned.
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClusterRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClusterRequestOrBuilder.java
index 880bf51de1e6..d18972df20c1 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClusterRequestOrBuilder.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClusterRequestOrBuilder.java
@@ -27,7 +27,8 @@ public interface DeleteAzureClusterRequestOrBuilder
    *
    *
    * 
-   * Required. The resource name the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete.
+   * Required. The resource name the
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete.
    * `AzureCluster` names are formatted as
    * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -45,7 +46,8 @@ public interface DeleteAzureClusterRequestOrBuilder
    *
    *
    * 
-   * Required. The resource name the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete.
+   * Required. The resource name the
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete.
    * `AzureCluster` names are formatted as
    * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -64,9 +66,10 @@ public interface DeleteAzureClusterRequestOrBuilder
    *
    *
    * 
-   * If set to true, and the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not found,
-   * the request will succeed but no action will be taken on the server and a
-   * completed [Operation][google.longrunning.Operation] will be returned.
+   * If set to true, and the
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not
+   * found, the request will succeed but no action will be taken on the server
+   * and a completed [Operation][google.longrunning.Operation] will be returned.
    * Useful for idempotent deletion.
    * 
* @@ -93,7 +96,8 @@ public interface DeleteAzureClusterRequestOrBuilder * * *
-   * The current etag of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
+   * The current etag of the
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
    * Allows clients to perform deletions through optimistic concurrency control.
    * If the provided etag does not match the current etag of the cluster,
    * the request will fail and an ABORTED error will be returned.
@@ -108,7 +112,8 @@ public interface DeleteAzureClusterRequestOrBuilder
    *
    *
    * 
-   * The current etag of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
+   * The current etag of the
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].
    * Allows clients to perform deletions through optimistic concurrency control.
    * If the provided etag does not match the current etag of the cluster,
    * the request will fail and an ABORTED error will be returned.
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureNodePoolRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureNodePoolRequest.java
index 7896d298ab09..2d28a206b147 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureNodePoolRequest.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureNodePoolRequest.java
@@ -22,7 +22,7 @@
  *
  *
  * 
- * Delete message for `AzureClusters.DeleteNodePool` method.
+ * Delete message for `AzureClusters.DeleteAzureNodePool` method.
  * 
* * Protobuf type {@code google.cloud.gkemulticloud.v1.DeleteAzureNodePoolRequest} @@ -74,7 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The resource name the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete.
+   * Required. The resource name the
+   * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete.
    * `AzureNodePool` names are formatted as
    * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -103,7 +104,8 @@ public java.lang.String getName() {
    *
    *
    * 
-   * Required. The resource name the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete.
+   * Required. The resource name the
+   * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete.
    * `AzureNodePool` names are formatted as
    * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -154,9 +156,11 @@ public boolean getValidateOnly() {
    *
    *
    * 
-   * If set to true, and the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is not found,
-   * the request will succeed but no action will be taken on the server and a
-   * completed [Operation][google.longrunning.Operation] will be returned.
+   * If set to true, and the
+   * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is
+   * not found, the request will succeed but no action will be taken on the
+   * server and a completed [Operation][google.longrunning.Operation] will be
+   * returned.
    * Useful for idempotent deletion.
    * 
* @@ -175,7 +179,8 @@ public boolean getAllowMissing() { * * *
-   * The current ETag of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].
+   * The current ETag of the
+   * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].
    * Allows clients to perform deletions through optimistic concurrency control.
    * If the provided ETag does not match the current etag of the node pool,
    * the request will fail and an ABORTED error will be returned.
@@ -201,7 +206,8 @@ public java.lang.String getEtag() {
    *
    *
    * 
-   * The current ETag of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].
+   * The current ETag of the
+   * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].
    * Allows clients to perform deletions through optimistic concurrency control.
    * If the provided ETag does not match the current etag of the node pool,
    * the request will fail and an ABORTED error will be returned.
@@ -415,7 +421,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    *
    * 
-   * Delete message for `AzureClusters.DeleteNodePool` method.
+   * Delete message for `AzureClusters.DeleteAzureNodePool` method.
    * 
* * Protobuf type {@code google.cloud.gkemulticloud.v1.DeleteAzureNodePoolRequest} @@ -626,7 +632,8 @@ public Builder mergeFrom( * * *
-     * Required. The resource name the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete.
+     * Required. The resource name the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete.
      * `AzureNodePool` names are formatted as
      * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -654,7 +661,8 @@ public java.lang.String getName() {
      *
      *
      * 
-     * Required. The resource name the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete.
+     * Required. The resource name the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete.
      * `AzureNodePool` names are formatted as
      * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -682,7 +690,8 @@ public com.google.protobuf.ByteString getNameBytes() {
      *
      *
      * 
-     * Required. The resource name the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete.
+     * Required. The resource name the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete.
      * `AzureNodePool` names are formatted as
      * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -709,7 +718,8 @@ public Builder setName(java.lang.String value) {
      *
      *
      * 
-     * Required. The resource name the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete.
+     * Required. The resource name the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete.
      * `AzureNodePool` names are formatted as
      * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -732,7 +742,8 @@ public Builder clearName() {
      *
      *
      * 
-     * Required. The resource name the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete.
+     * Required. The resource name the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete.
      * `AzureNodePool` names are formatted as
      * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -817,9 +828,11 @@ public Builder clearValidateOnly() {
      *
      *
      * 
-     * If set to true, and the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is not found,
-     * the request will succeed but no action will be taken on the server and a
-     * completed [Operation][google.longrunning.Operation] will be returned.
+     * If set to true, and the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is
+     * not found, the request will succeed but no action will be taken on the
+     * server and a completed [Operation][google.longrunning.Operation] will be
+     * returned.
      * Useful for idempotent deletion.
      * 
* @@ -835,9 +848,11 @@ public boolean getAllowMissing() { * * *
-     * If set to true, and the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is not found,
-     * the request will succeed but no action will be taken on the server and a
-     * completed [Operation][google.longrunning.Operation] will be returned.
+     * If set to true, and the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is
+     * not found, the request will succeed but no action will be taken on the
+     * server and a completed [Operation][google.longrunning.Operation] will be
+     * returned.
      * Useful for idempotent deletion.
      * 
* @@ -856,9 +871,11 @@ public Builder setAllowMissing(boolean value) { * * *
-     * If set to true, and the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is not found,
-     * the request will succeed but no action will be taken on the server and a
-     * completed [Operation][google.longrunning.Operation] will be returned.
+     * If set to true, and the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is
+     * not found, the request will succeed but no action will be taken on the
+     * server and a completed [Operation][google.longrunning.Operation] will be
+     * returned.
      * Useful for idempotent deletion.
      * 
* @@ -878,7 +895,8 @@ public Builder clearAllowMissing() { * * *
-     * The current ETag of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].
+     * The current ETag of the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].
      * Allows clients to perform deletions through optimistic concurrency control.
      * If the provided ETag does not match the current etag of the node pool,
      * the request will fail and an ABORTED error will be returned.
@@ -903,7 +921,8 @@ public java.lang.String getEtag() {
      *
      *
      * 
-     * The current ETag of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].
+     * The current ETag of the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].
      * Allows clients to perform deletions through optimistic concurrency control.
      * If the provided ETag does not match the current etag of the node pool,
      * the request will fail and an ABORTED error will be returned.
@@ -928,7 +947,8 @@ public com.google.protobuf.ByteString getEtagBytes() {
      *
      *
      * 
-     * The current ETag of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].
+     * The current ETag of the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].
      * Allows clients to perform deletions through optimistic concurrency control.
      * If the provided ETag does not match the current etag of the node pool,
      * the request will fail and an ABORTED error will be returned.
@@ -952,7 +972,8 @@ public Builder setEtag(java.lang.String value) {
      *
      *
      * 
-     * The current ETag of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].
+     * The current ETag of the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].
      * Allows clients to perform deletions through optimistic concurrency control.
      * If the provided ETag does not match the current etag of the node pool,
      * the request will fail and an ABORTED error will be returned.
@@ -972,7 +993,8 @@ public Builder clearEtag() {
      *
      *
      * 
-     * The current ETag of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].
+     * The current ETag of the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].
      * Allows clients to perform deletions through optimistic concurrency control.
      * If the provided ETag does not match the current etag of the node pool,
      * the request will fail and an ABORTED error will be returned.
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureNodePoolRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureNodePoolRequestOrBuilder.java
index e3269e4c3eb7..6c29af2f151f 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureNodePoolRequestOrBuilder.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureNodePoolRequestOrBuilder.java
@@ -27,7 +27,8 @@ public interface DeleteAzureNodePoolRequestOrBuilder
    *
    *
    * 
-   * Required. The resource name the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete.
+   * Required. The resource name the
+   * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete.
    * `AzureNodePool` names are formatted as
    * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -45,7 +46,8 @@ public interface DeleteAzureNodePoolRequestOrBuilder
    *
    *
    * 
-   * Required. The resource name the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete.
+   * Required. The resource name the
+   * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete.
    * `AzureNodePool` names are formatted as
    * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -78,9 +80,11 @@ public interface DeleteAzureNodePoolRequestOrBuilder
    *
    *
    * 
-   * If set to true, and the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is not found,
-   * the request will succeed but no action will be taken on the server and a
-   * completed [Operation][google.longrunning.Operation] will be returned.
+   * If set to true, and the
+   * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is
+   * not found, the request will succeed but no action will be taken on the
+   * server and a completed [Operation][google.longrunning.Operation] will be
+   * returned.
    * Useful for idempotent deletion.
    * 
* @@ -94,7 +98,8 @@ public interface DeleteAzureNodePoolRequestOrBuilder * * *
-   * The current ETag of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].
+   * The current ETag of the
+   * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].
    * Allows clients to perform deletions through optimistic concurrency control.
    * If the provided ETag does not match the current etag of the node pool,
    * the request will fail and an ABORTED error will be returned.
@@ -109,7 +114,8 @@ public interface DeleteAzureNodePoolRequestOrBuilder
    *
    *
    * 
-   * The current ETag of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].
+   * The current ETag of the
+   * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].
    * Allows clients to perform deletions through optimistic concurrency control.
    * If the provided ETag does not match the current etag of the node pool,
    * the request will fail and an ABORTED error will be returned.
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/Fleet.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/Fleet.java
index 3ca3518536d6..3009e27feb18 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/Fleet.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/Fleet.java
@@ -80,7 +80,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    *
    * 
-   * Required. The name of the Fleet host project where this cluster will be registered.
+   * Required. The name of the Fleet host project where this cluster will be
+   * registered.
    * Project names are formatted as
    * `projects/<project-number>`.
    * 
@@ -105,7 +106,8 @@ public java.lang.String getProject() { * * *
-   * Required. The name of the Fleet host project where this cluster will be registered.
+   * Required. The name of the Fleet host project where this cluster will be
+   * registered.
    * Project names are formatted as
    * `projects/<project-number>`.
    * 
@@ -133,7 +135,8 @@ public com.google.protobuf.ByteString getProjectBytes() { * * *
-   * Output only. The name of the managed Hub Membership resource associated to this cluster.
+   * Output only. The name of the managed Hub Membership resource associated to
+   * this cluster.
    * Membership names are formatted as
    * `projects/<project-number>/locations/global/membership/<cluster-id>`.
    * 
@@ -158,7 +161,8 @@ public java.lang.String getMembership() { * * *
-   * Output only. The name of the managed Hub Membership resource associated to this cluster.
+   * Output only. The name of the managed Hub Membership resource associated to
+   * this cluster.
    * Membership names are formatted as
    * `projects/<project-number>/locations/global/membership/<cluster-id>`.
    * 
@@ -541,7 +545,8 @@ public Builder mergeFrom( * * *
-     * Required. The name of the Fleet host project where this cluster will be registered.
+     * Required. The name of the Fleet host project where this cluster will be
+     * registered.
      * Project names are formatted as
      * `projects/<project-number>`.
      * 
@@ -565,7 +570,8 @@ public java.lang.String getProject() { * * *
-     * Required. The name of the Fleet host project where this cluster will be registered.
+     * Required. The name of the Fleet host project where this cluster will be
+     * registered.
      * Project names are formatted as
      * `projects/<project-number>`.
      * 
@@ -589,7 +595,8 @@ public com.google.protobuf.ByteString getProjectBytes() { * * *
-     * Required. The name of the Fleet host project where this cluster will be registered.
+     * Required. The name of the Fleet host project where this cluster will be
+     * registered.
      * Project names are formatted as
      * `projects/<project-number>`.
      * 
@@ -612,7 +619,8 @@ public Builder setProject(java.lang.String value) { * * *
-     * Required. The name of the Fleet host project where this cluster will be registered.
+     * Required. The name of the Fleet host project where this cluster will be
+     * registered.
      * Project names are formatted as
      * `projects/<project-number>`.
      * 
@@ -631,7 +639,8 @@ public Builder clearProject() { * * *
-     * Required. The name of the Fleet host project where this cluster will be registered.
+     * Required. The name of the Fleet host project where this cluster will be
+     * registered.
      * Project names are formatted as
      * `projects/<project-number>`.
      * 
@@ -657,7 +666,8 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. The name of the managed Hub Membership resource associated to this cluster.
+     * Output only. The name of the managed Hub Membership resource associated to
+     * this cluster.
      * Membership names are formatted as
      * `projects/<project-number>/locations/global/membership/<cluster-id>`.
      * 
@@ -681,7 +691,8 @@ public java.lang.String getMembership() { * * *
-     * Output only. The name of the managed Hub Membership resource associated to this cluster.
+     * Output only. The name of the managed Hub Membership resource associated to
+     * this cluster.
      * Membership names are formatted as
      * `projects/<project-number>/locations/global/membership/<cluster-id>`.
      * 
@@ -705,7 +716,8 @@ public com.google.protobuf.ByteString getMembershipBytes() { * * *
-     * Output only. The name of the managed Hub Membership resource associated to this cluster.
+     * Output only. The name of the managed Hub Membership resource associated to
+     * this cluster.
      * Membership names are formatted as
      * `projects/<project-number>/locations/global/membership/<cluster-id>`.
      * 
@@ -728,7 +740,8 @@ public Builder setMembership(java.lang.String value) { * * *
-     * Output only. The name of the managed Hub Membership resource associated to this cluster.
+     * Output only. The name of the managed Hub Membership resource associated to
+     * this cluster.
      * Membership names are formatted as
      * `projects/<project-number>/locations/global/membership/<cluster-id>`.
      * 
@@ -747,7 +760,8 @@ public Builder clearMembership() { * * *
-     * Output only. The name of the managed Hub Membership resource associated to this cluster.
+     * Output only. The name of the managed Hub Membership resource associated to
+     * this cluster.
      * Membership names are formatted as
      * `projects/<project-number>/locations/global/membership/<cluster-id>`.
      * 
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/FleetOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/FleetOrBuilder.java index fa25a8a1a69f..8e9871992d93 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/FleetOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/FleetOrBuilder.java @@ -27,7 +27,8 @@ public interface FleetOrBuilder * * *
-   * Required. The name of the Fleet host project where this cluster will be registered.
+   * Required. The name of the Fleet host project where this cluster will be
+   * registered.
    * Project names are formatted as
    * `projects/<project-number>`.
    * 
@@ -41,7 +42,8 @@ public interface FleetOrBuilder * * *
-   * Required. The name of the Fleet host project where this cluster will be registered.
+   * Required. The name of the Fleet host project where this cluster will be
+   * registered.
    * Project names are formatted as
    * `projects/<project-number>`.
    * 
@@ -56,7 +58,8 @@ public interface FleetOrBuilder * * *
-   * Output only. The name of the managed Hub Membership resource associated to this cluster.
+   * Output only. The name of the managed Hub Membership resource associated to
+   * this cluster.
    * Membership names are formatted as
    * `projects/<project-number>/locations/global/membership/<cluster-id>`.
    * 
@@ -70,7 +73,8 @@ public interface FleetOrBuilder * * *
-   * Output only. The name of the managed Hub Membership resource associated to this cluster.
+   * Output only. The name of the managed Hub Membership resource associated to
+   * this cluster.
    * Membership names are formatted as
    * `projects/<project-number>/locations/global/membership/<cluster-id>`.
    * 
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAttachedClusterInstallManifestRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAttachedClusterInstallManifestRequest.java new file mode 100644 index 000000000000..5a0d2f4841e7 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAttachedClusterInstallManifestRequest.java @@ -0,0 +1,1146 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_service.proto + +package com.google.cloud.gkemulticloud.v1; + +/** + * + * + *
+ * Request message for `AttachedClusters.GenerateAttachedClusterInstallManifest`
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest} + */ +public final class GenerateAttachedClusterInstallManifestRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest) + GenerateAttachedClusterInstallManifestRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerateAttachedClusterInstallManifestRequest.newBuilder() to construct. + private GenerateAttachedClusterInstallManifestRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GenerateAttachedClusterInstallManifestRequest() { + parent_ = ""; + attachedClusterId_ = ""; + platformVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GenerateAttachedClusterInstallManifestRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_GenerateAttachedClusterInstallManifestRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_GenerateAttachedClusterInstallManifestRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest.class, + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The parent location where this
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * will be created.
+   * Location names are formatted as `projects/<project-id>/locations/<region>`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on Google Cloud resource names.
+   * 
+ * + * + * 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 location where this
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * will be created.
+   * Location names are formatted as `projects/<project-id>/locations/<region>`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on Google Cloud resource names.
+   * 
+ * + * + * 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 ATTACHED_CLUSTER_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object attachedClusterId_; + /** + * + * + *
+   * Required. A client provided ID the resource. Must be unique within the
+   * parent resource.
+   * The provided ID will be part of the
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * name formatted as
+   * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
+   * When generating an install manifest for importing an existing Membership
+   * resource, the attached_cluster_id field must be the Membership id.
+   * Membership names are formatted as `resource name formatted as
+   * `projects/<project-id>/locations/<region>/memberships/<membership-id>`.
+   * 
+ * + * string attached_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The attachedClusterId. + */ + @java.lang.Override + public java.lang.String getAttachedClusterId() { + java.lang.Object ref = attachedClusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attachedClusterId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. A client provided ID the resource. Must be unique within the
+   * parent resource.
+   * The provided ID will be part of the
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * name formatted as
+   * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
+   * When generating an install manifest for importing an existing Membership
+   * resource, the attached_cluster_id field must be the Membership id.
+   * Membership names are formatted as `resource name formatted as
+   * `projects/<project-id>/locations/<region>/memberships/<membership-id>`.
+   * 
+ * + * string attached_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for attachedClusterId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAttachedClusterIdBytes() { + java.lang.Object ref = attachedClusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + attachedClusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PLATFORM_VERSION_FIELD_NUMBER = 3; + private volatile java.lang.Object platformVersion_; + /** + * + * + *
+   * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
+   * You can list all supported versions on a given Google Cloud region by
+   * calling
+   * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
+   * 
+ * + * string platform_version = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The platformVersion. + */ + @java.lang.Override + public java.lang.String getPlatformVersion() { + java.lang.Object ref = platformVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + platformVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
+   * You can list all supported versions on a given Google Cloud region by
+   * calling
+   * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
+   * 
+ * + * string platform_version = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for platformVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPlatformVersionBytes() { + java.lang.Object ref = platformVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + platformVersion_ = 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(attachedClusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, attachedClusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(platformVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, platformVersion_); + } + 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(attachedClusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, attachedClusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(platformVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, platformVersion_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest)) { + return super.equals(obj); + } + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest other = + (com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getAttachedClusterId().equals(other.getAttachedClusterId())) return false; + if (!getPlatformVersion().equals(other.getPlatformVersion())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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) + ATTACHED_CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getAttachedClusterId().hashCode(); + hash = (37 * hash) + PLATFORM_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getPlatformVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 `AttachedClusters.GenerateAttachedClusterInstallManifest`
+   * method.
+   * 
+ * + * Protobuf type {@code + * google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest) + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_GenerateAttachedClusterInstallManifestRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_GenerateAttachedClusterInstallManifestRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest.class, + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + attachedClusterId_ = ""; + + platformVersion_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_GenerateAttachedClusterInstallManifestRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest + getDefaultInstanceForType() { + return com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest build() { + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest + buildPartial() { + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest result = + new com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest(this); + result.parent_ = parent_; + result.attachedClusterId_ = attachedClusterId_; + result.platformVersion_ = platformVersion_; + 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.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest) { + return mergeFrom( + (com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest other) { + if (other + == com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getAttachedClusterId().isEmpty()) { + attachedClusterId_ = other.attachedClusterId_; + onChanged(); + } + if (!other.getPlatformVersion().isEmpty()) { + platformVersion_ = other.platformVersion_; + 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(); + + break; + } // case 10 + case 18: + { + attachedClusterId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + platformVersion_ = input.readStringRequireUtf8(); + + 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 java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent location where this
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * will be created.
+     * Location names are formatted as `projects/<project-id>/locations/<region>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on Google Cloud resource names.
+     * 
+ * + * + * 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 location where this
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * will be created.
+     * Location names are formatted as `projects/<project-id>/locations/<region>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on Google Cloud resource names.
+     * 
+ * + * + * 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 location where this
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * will be created.
+     * Location names are formatted as `projects/<project-id>/locations/<region>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on Google Cloud resource names.
+     * 
+ * + * + * 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent location where this
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * will be created.
+     * Location names are formatted as `projects/<project-id>/locations/<region>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on Google Cloud resource names.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent location where this
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * will be created.
+     * Location names are formatted as `projects/<project-id>/locations/<region>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on Google Cloud resource names.
+     * 
+ * + * + * 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; + onChanged(); + return this; + } + + private java.lang.Object attachedClusterId_ = ""; + /** + * + * + *
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * name formatted as
+     * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
+     * When generating an install manifest for importing an existing Membership
+     * resource, the attached_cluster_id field must be the Membership id.
+     * Membership names are formatted as `resource name formatted as
+     * `projects/<project-id>/locations/<region>/memberships/<membership-id>`.
+     * 
+ * + * string attached_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The attachedClusterId. + */ + public java.lang.String getAttachedClusterId() { + java.lang.Object ref = attachedClusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attachedClusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * name formatted as
+     * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
+     * When generating an install manifest for importing an existing Membership
+     * resource, the attached_cluster_id field must be the Membership id.
+     * Membership names are formatted as `resource name formatted as
+     * `projects/<project-id>/locations/<region>/memberships/<membership-id>`.
+     * 
+ * + * string attached_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for attachedClusterId. + */ + public com.google.protobuf.ByteString getAttachedClusterIdBytes() { + java.lang.Object ref = attachedClusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + attachedClusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * name formatted as
+     * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
+     * When generating an install manifest for importing an existing Membership
+     * resource, the attached_cluster_id field must be the Membership id.
+     * Membership names are formatted as `resource name formatted as
+     * `projects/<project-id>/locations/<region>/memberships/<membership-id>`.
+     * 
+ * + * string attached_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The attachedClusterId to set. + * @return This builder for chaining. + */ + public Builder setAttachedClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + attachedClusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * name formatted as
+     * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
+     * When generating an install manifest for importing an existing Membership
+     * resource, the attached_cluster_id field must be the Membership id.
+     * Membership names are formatted as `resource name formatted as
+     * `projects/<project-id>/locations/<region>/memberships/<membership-id>`.
+     * 
+ * + * string attached_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAttachedClusterId() { + + attachedClusterId_ = getDefaultInstance().getAttachedClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A client provided ID the resource. Must be unique within the
+     * parent resource.
+     * The provided ID will be part of the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * name formatted as
+     * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+     * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
+     * When generating an install manifest for importing an existing Membership
+     * resource, the attached_cluster_id field must be the Membership id.
+     * Membership names are formatted as `resource name formatted as
+     * `projects/<project-id>/locations/<region>/memberships/<membership-id>`.
+     * 
+ * + * string attached_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for attachedClusterId to set. + * @return This builder for chaining. + */ + public Builder setAttachedClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + attachedClusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object platformVersion_ = ""; + /** + * + * + *
+     * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
+     * You can list all supported versions on a given Google Cloud region by
+     * calling
+     * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
+     * 
+ * + * string platform_version = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The platformVersion. + */ + public java.lang.String getPlatformVersion() { + java.lang.Object ref = platformVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + platformVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
+     * You can list all supported versions on a given Google Cloud region by
+     * calling
+     * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
+     * 
+ * + * string platform_version = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for platformVersion. + */ + public com.google.protobuf.ByteString getPlatformVersionBytes() { + java.lang.Object ref = platformVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + platformVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
+     * You can list all supported versions on a given Google Cloud region by
+     * calling
+     * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
+     * 
+ * + * string platform_version = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The platformVersion to set. + * @return This builder for chaining. + */ + public Builder setPlatformVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + platformVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
+     * You can list all supported versions on a given Google Cloud region by
+     * calling
+     * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
+     * 
+ * + * string platform_version = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPlatformVersion() { + + platformVersion_ = getDefaultInstance().getPlatformVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
+     * You can list all supported versions on a given Google Cloud region by
+     * calling
+     * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
+     * 
+ * + * string platform_version = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for platformVersion to set. + * @return This builder for chaining. + */ + public Builder setPlatformVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + platformVersion_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest) + private static final com.google.cloud.gkemulticloud.v1 + .GenerateAttachedClusterInstallManifestRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest(); + } + + public static com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateAttachedClusterInstallManifestRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAttachedClusterInstallManifestRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAttachedClusterInstallManifestRequestOrBuilder.java new file mode 100644 index 000000000000..f922e90cb125 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAttachedClusterInstallManifestRequestOrBuilder.java @@ -0,0 +1,140 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_service.proto + +package com.google.cloud.gkemulticloud.v1; + +public interface GenerateAttachedClusterInstallManifestRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent location where this
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * will be created.
+   * Location names are formatted as `projects/<project-id>/locations/<region>`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on Google Cloud resource names.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent location where this
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * will be created.
+   * Location names are formatted as `projects/<project-id>/locations/<region>`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on Google Cloud resource names.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. A client provided ID the resource. Must be unique within the
+   * parent resource.
+   * The provided ID will be part of the
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * name formatted as
+   * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
+   * When generating an install manifest for importing an existing Membership
+   * resource, the attached_cluster_id field must be the Membership id.
+   * Membership names are formatted as `resource name formatted as
+   * `projects/<project-id>/locations/<region>/memberships/<membership-id>`.
+   * 
+ * + * string attached_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The attachedClusterId. + */ + java.lang.String getAttachedClusterId(); + /** + * + * + *
+   * Required. A client provided ID the resource. Must be unique within the
+   * parent resource.
+   * The provided ID will be part of the
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * name formatted as
+   * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+   * Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
+   * When generating an install manifest for importing an existing Membership
+   * resource, the attached_cluster_id field must be the Membership id.
+   * Membership names are formatted as `resource name formatted as
+   * `projects/<project-id>/locations/<region>/memberships/<membership-id>`.
+   * 
+ * + * string attached_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for attachedClusterId. + */ + com.google.protobuf.ByteString getAttachedClusterIdBytes(); + + /** + * + * + *
+   * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
+   * You can list all supported versions on a given Google Cloud region by
+   * calling
+   * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
+   * 
+ * + * string platform_version = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The platformVersion. + */ + java.lang.String getPlatformVersion(); + /** + * + * + *
+   * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
+   * You can list all supported versions on a given Google Cloud region by
+   * calling
+   * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
+   * 
+ * + * string platform_version = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for platformVersion. + */ + com.google.protobuf.ByteString getPlatformVersionBytes(); +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAttachedClusterInstallManifestResponse.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAttachedClusterInstallManifestResponse.java new file mode 100644 index 000000000000..fbdd0c24849b --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAttachedClusterInstallManifestResponse.java @@ -0,0 +1,662 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_service.proto + +package com.google.cloud.gkemulticloud.v1; + +/** + * + * + *
+ * Response message for
+ * `AttachedClusters.GenerateAttachedClusterInstallManifest` method.
+ * 
+ * + * Protobuf type {@code + * google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse} + */ +public final class GenerateAttachedClusterInstallManifestResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse) + GenerateAttachedClusterInstallManifestResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerateAttachedClusterInstallManifestResponse.newBuilder() to construct. + private GenerateAttachedClusterInstallManifestResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GenerateAttachedClusterInstallManifestResponse() { + manifest_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GenerateAttachedClusterInstallManifestResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_GenerateAttachedClusterInstallManifestResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_GenerateAttachedClusterInstallManifestResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse.class, + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse.Builder + .class); + } + + public static final int MANIFEST_FIELD_NUMBER = 1; + private volatile java.lang.Object manifest_; + /** + * + * + *
+   * A set of Kubernetes resources (in YAML format) to be applied
+   * to the cluster to be attached.
+   * 
+ * + * string manifest = 1; + * + * @return The manifest. + */ + @java.lang.Override + public java.lang.String getManifest() { + java.lang.Object ref = manifest_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + manifest_ = s; + return s; + } + } + /** + * + * + *
+   * A set of Kubernetes resources (in YAML format) to be applied
+   * to the cluster to be attached.
+   * 
+ * + * string manifest = 1; + * + * @return The bytes for manifest. + */ + @java.lang.Override + public com.google.protobuf.ByteString getManifestBytes() { + java.lang.Object ref = manifest_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + manifest_ = 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(manifest_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, manifest_); + } + 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(manifest_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, manifest_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse)) { + return super.equals(obj); + } + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse other = + (com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse) obj; + + if (!getManifest().equals(other.getManifest())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MANIFEST_FIELD_NUMBER; + hash = (53 * hash) + getManifest().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
+   * `AttachedClusters.GenerateAttachedClusterInstallManifest` method.
+   * 
+ * + * Protobuf type {@code + * google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse) + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_GenerateAttachedClusterInstallManifestResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_GenerateAttachedClusterInstallManifestResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse + .class, + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse + .Builder.class); + } + + // Construct using + // com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + manifest_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_GenerateAttachedClusterInstallManifestResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse + getDefaultInstanceForType() { + return com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse + build() { + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse + buildPartial() { + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse result = + new com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse( + this); + result.manifest_ = manifest_; + 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.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse) { + return mergeFrom( + (com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse other) { + if (other + == com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse + .getDefaultInstance()) return this; + if (!other.getManifest().isEmpty()) { + manifest_ = other.manifest_; + 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: + { + manifest_ = input.readStringRequireUtf8(); + + 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 java.lang.Object manifest_ = ""; + /** + * + * + *
+     * A set of Kubernetes resources (in YAML format) to be applied
+     * to the cluster to be attached.
+     * 
+ * + * string manifest = 1; + * + * @return The manifest. + */ + public java.lang.String getManifest() { + java.lang.Object ref = manifest_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + manifest_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A set of Kubernetes resources (in YAML format) to be applied
+     * to the cluster to be attached.
+     * 
+ * + * string manifest = 1; + * + * @return The bytes for manifest. + */ + public com.google.protobuf.ByteString getManifestBytes() { + java.lang.Object ref = manifest_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + manifest_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A set of Kubernetes resources (in YAML format) to be applied
+     * to the cluster to be attached.
+     * 
+ * + * string manifest = 1; + * + * @param value The manifest to set. + * @return This builder for chaining. + */ + public Builder setManifest(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + manifest_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A set of Kubernetes resources (in YAML format) to be applied
+     * to the cluster to be attached.
+     * 
+ * + * string manifest = 1; + * + * @return This builder for chaining. + */ + public Builder clearManifest() { + + manifest_ = getDefaultInstance().getManifest(); + onChanged(); + return this; + } + /** + * + * + *
+     * A set of Kubernetes resources (in YAML format) to be applied
+     * to the cluster to be attached.
+     * 
+ * + * string manifest = 1; + * + * @param value The bytes for manifest to set. + * @return This builder for chaining. + */ + public Builder setManifestBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + manifest_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse) + private static final com.google.cloud.gkemulticloud.v1 + .GenerateAttachedClusterInstallManifestResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse(); + } + + public static com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateAttachedClusterInstallManifestResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAttachedClusterInstallManifestResponseOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAttachedClusterInstallManifestResponseOrBuilder.java new file mode 100644 index 000000000000..b545003c3bb0 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAttachedClusterInstallManifestResponseOrBuilder.java @@ -0,0 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_service.proto + +package com.google.cloud.gkemulticloud.v1; + +public interface GenerateAttachedClusterInstallManifestResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A set of Kubernetes resources (in YAML format) to be applied
+   * to the cluster to be attached.
+   * 
+ * + * string manifest = 1; + * + * @return The manifest. + */ + java.lang.String getManifest(); + /** + * + * + *
+   * A set of Kubernetes resources (in YAML format) to be applied
+   * to the cluster to be attached.
+   * 
+ * + * string manifest = 1; + * + * @return The bytes for manifest. + */ + com.google.protobuf.ByteString getManifestBytes(); +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsAccessTokenRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsAccessTokenRequest.java index 55177109d677..83550b3c18a8 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsAccessTokenRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsAccessTokenRequest.java @@ -73,7 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to authenticate to.
+   * Required. The name of the
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to
+   * authenticate to.
    * `AwsCluster` names are formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -102,7 +104,9 @@ public java.lang.String getAwsCluster() {
    *
    *
    * 
-   * Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to authenticate to.
+   * Required. The name of the
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to
+   * authenticate to.
    * `AwsCluster` names are formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -467,7 +471,9 @@ public Builder mergeFrom(
      *
      *
      * 
-     * Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to authenticate to.
+     * Required. The name of the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to
+     * authenticate to.
      * `AwsCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -495,7 +501,9 @@ public java.lang.String getAwsCluster() {
      *
      *
      * 
-     * Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to authenticate to.
+     * Required. The name of the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to
+     * authenticate to.
      * `AwsCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -523,7 +531,9 @@ public com.google.protobuf.ByteString getAwsClusterBytes() {
      *
      *
      * 
-     * Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to authenticate to.
+     * Required. The name of the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to
+     * authenticate to.
      * `AwsCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -550,7 +560,9 @@ public Builder setAwsCluster(java.lang.String value) {
      *
      *
      * 
-     * Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to authenticate to.
+     * Required. The name of the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to
+     * authenticate to.
      * `AwsCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -573,7 +585,9 @@ public Builder clearAwsCluster() {
      *
      *
      * 
-     * Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to authenticate to.
+     * Required. The name of the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to
+     * authenticate to.
      * `AwsCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsAccessTokenRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsAccessTokenRequestOrBuilder.java
index a04cdab5064f..a419dad3cf7f 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsAccessTokenRequestOrBuilder.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsAccessTokenRequestOrBuilder.java
@@ -27,7 +27,9 @@ public interface GenerateAwsAccessTokenRequestOrBuilder
    *
    *
    * 
-   * Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to authenticate to.
+   * Required. The name of the
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to
+   * authenticate to.
    * `AwsCluster` names are formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -45,7 +47,9 @@ public interface GenerateAwsAccessTokenRequestOrBuilder
    *
    *
    * 
-   * Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to authenticate to.
+   * Required. The name of the
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to
+   * authenticate to.
    * `AwsCluster` names are formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureAccessTokenRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureAccessTokenRequest.java
index 3641e5ab5775..329472ed2d39 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureAccessTokenRequest.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureAccessTokenRequest.java
@@ -74,7 +74,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    *
    * 
-   * Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to authenticate to.
+   * Required. The name of the
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to
+   * authenticate to.
    * `AzureCluster` names are formatted as
    * `projects/<project-id>/locations/<region>/AzureClusters/<cluster-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -103,7 +105,9 @@ public java.lang.String getAzureCluster() {
    *
    *
    * 
-   * Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to authenticate to.
+   * Required. The name of the
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to
+   * authenticate to.
    * `AzureCluster` names are formatted as
    * `projects/<project-id>/locations/<region>/AzureClusters/<cluster-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -470,7 +474,9 @@ public Builder mergeFrom(
      *
      *
      * 
-     * Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to authenticate to.
+     * Required. The name of the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to
+     * authenticate to.
      * `AzureCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/AzureClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -498,7 +504,9 @@ public java.lang.String getAzureCluster() {
      *
      *
      * 
-     * Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to authenticate to.
+     * Required. The name of the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to
+     * authenticate to.
      * `AzureCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/AzureClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -526,7 +534,9 @@ public com.google.protobuf.ByteString getAzureClusterBytes() {
      *
      *
      * 
-     * Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to authenticate to.
+     * Required. The name of the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to
+     * authenticate to.
      * `AzureCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/AzureClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -553,7 +563,9 @@ public Builder setAzureCluster(java.lang.String value) {
      *
      *
      * 
-     * Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to authenticate to.
+     * Required. The name of the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to
+     * authenticate to.
      * `AzureCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/AzureClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -576,7 +588,9 @@ public Builder clearAzureCluster() {
      *
      *
      * 
-     * Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to authenticate to.
+     * Required. The name of the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to
+     * authenticate to.
      * `AzureCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/AzureClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureAccessTokenRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureAccessTokenRequestOrBuilder.java
index efa15585d2ce..ed0dd52e481f 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureAccessTokenRequestOrBuilder.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureAccessTokenRequestOrBuilder.java
@@ -27,7 +27,9 @@ public interface GenerateAzureAccessTokenRequestOrBuilder
    *
    *
    * 
-   * Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to authenticate to.
+   * Required. The name of the
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to
+   * authenticate to.
    * `AzureCluster` names are formatted as
    * `projects/<project-id>/locations/<region>/AzureClusters/<cluster-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -45,7 +47,9 @@ public interface GenerateAzureAccessTokenRequestOrBuilder
    *
    *
    * 
-   * Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to authenticate to.
+   * Required. The name of the
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to
+   * authenticate to.
    * `AzureCluster` names are formatted as
    * `projects/<project-id>/locations/<region>/AzureClusters/<cluster-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAttachedClusterRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAttachedClusterRequest.java
new file mode 100644
index 000000000000..3ccc3e5847f9
--- /dev/null
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAttachedClusterRequest.java
@@ -0,0 +1,672 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/gkemulticloud/v1/attached_service.proto
+
+package com.google.cloud.gkemulticloud.v1;
+
+/**
+ *
+ *
+ * 
+ * Request message for `AttachedClusters.GetAttachedCluster` method.
+ * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.GetAttachedClusterRequest} + */ +public final class GetAttachedClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.GetAttachedClusterRequest) + GetAttachedClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetAttachedClusterRequest.newBuilder() to construct. + private GetAttachedClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetAttachedClusterRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetAttachedClusterRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_GetAttachedClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_GetAttachedClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest.class, + com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * to describe.
+   * `AttachedCluster` names are formatted as
+   * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on GCP resource names.
+   * 
+ * + * + * 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
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * to describe.
+   * `AttachedCluster` names are formatted as
+   * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on GCP resource names.
+   * 
+ * + * + * 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.gkemulticloud.v1.GetAttachedClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest other = + (com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest) 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.gkemulticloud.v1.GetAttachedClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 `AttachedClusters.GetAttachedCluster` method.
+   * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.GetAttachedClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkemulticloud.v1.GetAttachedClusterRequest) + com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_GetAttachedClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_GetAttachedClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest.class, + com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_GetAttachedClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest getDefaultInstanceForType() { + return com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest build() { + com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest buildPartial() { + com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest result = + new com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest(this); + result.name_ = name_; + 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.gkemulticloud.v1.GetAttachedClusterRequest) { + return mergeFrom((com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest other) { + if (other == com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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(); + + 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 java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * to describe.
+     * `AttachedCluster` names are formatted as
+     * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on GCP resource names.
+     * 
+ * + * + * 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
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * to describe.
+     * `AttachedCluster` names are formatted as
+     * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on GCP resource names.
+     * 
+ * + * + * 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
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * to describe.
+     * `AttachedCluster` names are formatted as
+     * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on GCP resource names.
+     * 
+ * + * + * 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * to describe.
+     * `AttachedCluster` names are formatted as
+     * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on GCP resource names.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * to describe.
+     * `AttachedCluster` names are formatted as
+     * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on GCP resource names.
+     * 
+ * + * + * 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkemulticloud.v1.GetAttachedClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkemulticloud.v1.GetAttachedClusterRequest) + private static final com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest(); + } + + public static com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAttachedClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAttachedClusterRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAttachedClusterRequestOrBuilder.java new file mode 100644 index 000000000000..d4d4a35b6b19 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAttachedClusterRequestOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_service.proto + +package com.google.cloud.gkemulticloud.v1; + +public interface GetAttachedClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.GetAttachedClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * to describe.
+   * `AttachedCluster` names are formatted as
+   * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on GCP resource names.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * to describe.
+   * `AttachedCluster` names are formatted as
+   * `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on GCP resource names.
+   * 
+ * + * + * 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-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAttachedServerConfigRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAttachedServerConfigRequest.java new file mode 100644 index 000000000000..798f868dc888 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAttachedServerConfigRequest.java @@ -0,0 +1,681 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_service.proto + +package com.google.cloud.gkemulticloud.v1; + +/** + * + * + *
+ * GetAttachedServerConfigRequest gets the server config for attached
+ * clusters.
+ * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest} + */ +public final class GetAttachedServerConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest) + GetAttachedServerConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetAttachedServerConfigRequest.newBuilder() to construct. + private GetAttachedServerConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetAttachedServerConfigRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetAttachedServerConfigRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_GetAttachedServerConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_GetAttachedServerConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest.class, + com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the
+   * [AttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedServerConfig]
+   * resource to describe.
+   * `AttachedServerConfig` names are formatted as
+   * `projects/<project-id>/locations/<region>/attachedServerConfig`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on Google Cloud resource names.
+   * 
+ * + * + * 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
+   * [AttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedServerConfig]
+   * resource to describe.
+   * `AttachedServerConfig` names are formatted as
+   * `projects/<project-id>/locations/<region>/attachedServerConfig`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on Google Cloud resource names.
+   * 
+ * + * + * 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.gkemulticloud.v1.GetAttachedServerConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest other = + (com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest) 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.gkemulticloud.v1.GetAttachedServerConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * GetAttachedServerConfigRequest gets the server config for attached
+   * clusters.
+   * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest) + com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_GetAttachedServerConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_GetAttachedServerConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest.class, + com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_GetAttachedServerConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest build() { + com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest buildPartial() { + com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest result = + new com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest(this); + result.name_ = name_; + 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.gkemulticloud.v1.GetAttachedServerConfigRequest) { + return mergeFrom((com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest other) { + if (other + == com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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(); + + 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 java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the
+     * [AttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedServerConfig]
+     * resource to describe.
+     * `AttachedServerConfig` names are formatted as
+     * `projects/<project-id>/locations/<region>/attachedServerConfig`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on Google Cloud resource names.
+     * 
+ * + * + * 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
+     * [AttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedServerConfig]
+     * resource to describe.
+     * `AttachedServerConfig` names are formatted as
+     * `projects/<project-id>/locations/<region>/attachedServerConfig`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on Google Cloud resource names.
+     * 
+ * + * + * 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
+     * [AttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedServerConfig]
+     * resource to describe.
+     * `AttachedServerConfig` names are formatted as
+     * `projects/<project-id>/locations/<region>/attachedServerConfig`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on Google Cloud resource names.
+     * 
+ * + * + * 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the
+     * [AttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedServerConfig]
+     * resource to describe.
+     * `AttachedServerConfig` names are formatted as
+     * `projects/<project-id>/locations/<region>/attachedServerConfig`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on Google Cloud resource names.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the
+     * [AttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedServerConfig]
+     * resource to describe.
+     * `AttachedServerConfig` names are formatted as
+     * `projects/<project-id>/locations/<region>/attachedServerConfig`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on Google Cloud resource names.
+     * 
+ * + * + * 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest) + private static final com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest(); + } + + public static com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAttachedServerConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAttachedServerConfigRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAttachedServerConfigRequestOrBuilder.java new file mode 100644 index 000000000000..84e1806db95c --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAttachedServerConfigRequestOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_service.proto + +package com.google.cloud.gkemulticloud.v1; + +public interface GetAttachedServerConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the
+   * [AttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedServerConfig]
+   * resource to describe.
+   * `AttachedServerConfig` names are formatted as
+   * `projects/<project-id>/locations/<region>/attachedServerConfig`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on Google Cloud resource names.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the
+   * [AttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedServerConfig]
+   * resource to describe.
+   * `AttachedServerConfig` names are formatted as
+   * `projects/<project-id>/locations/<region>/attachedServerConfig`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on Google Cloud resource names.
+   * 
+ * + * + * 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-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsClusterRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsClusterRequest.java index e6c976c7ac88..ffeaff9faa7e 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsClusterRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsClusterRequest.java @@ -73,7 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to describe.
+   * Required. The name of the
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to
+   * describe.
    * `AwsCluster` names are formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -102,7 +104,9 @@ public java.lang.String getName() {
    *
    *
    * 
-   * Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to describe.
+   * Required. The name of the
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to
+   * describe.
    * `AwsCluster` names are formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -464,7 +468,9 @@ public Builder mergeFrom(
      *
      *
      * 
-     * Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to describe.
+     * Required. The name of the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to
+     * describe.
      * `AwsCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -492,7 +498,9 @@ public java.lang.String getName() {
      *
      *
      * 
-     * Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to describe.
+     * Required. The name of the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to
+     * describe.
      * `AwsCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -520,7 +528,9 @@ public com.google.protobuf.ByteString getNameBytes() {
      *
      *
      * 
-     * Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to describe.
+     * Required. The name of the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to
+     * describe.
      * `AwsCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -547,7 +557,9 @@ public Builder setName(java.lang.String value) {
      *
      *
      * 
-     * Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to describe.
+     * Required. The name of the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to
+     * describe.
      * `AwsCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -570,7 +582,9 @@ public Builder clearName() {
      *
      *
      * 
-     * Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to describe.
+     * Required. The name of the
+     * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to
+     * describe.
      * `AwsCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsClusterRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsClusterRequestOrBuilder.java
index a7cd2169a128..c6bc4604e14e 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsClusterRequestOrBuilder.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsClusterRequestOrBuilder.java
@@ -27,7 +27,9 @@ public interface GetAwsClusterRequestOrBuilder
    *
    *
    * 
-   * Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to describe.
+   * Required. The name of the
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to
+   * describe.
    * `AwsCluster` names are formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -45,7 +47,9 @@ public interface GetAwsClusterRequestOrBuilder
    *
    *
    * 
-   * Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to describe.
+   * Required. The name of the
+   * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to
+   * describe.
    * `AwsCluster` names are formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsNodePoolRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsNodePoolRequest.java
index faa284249657..1c683bbdd21b 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsNodePoolRequest.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsNodePoolRequest.java
@@ -73,7 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    *
    * 
-   * Required. The name of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to describe.
+   * Required. The name of the
+   * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to
+   * describe.
    * `AwsNodePool` names are formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -102,7 +104,9 @@ public java.lang.String getName() {
    *
    *
    * 
-   * Required. The name of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to describe.
+   * Required. The name of the
+   * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to
+   * describe.
    * `AwsNodePool` names are formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -464,7 +468,9 @@ public Builder mergeFrom(
      *
      *
      * 
-     * Required. The name of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to describe.
+     * Required. The name of the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to
+     * describe.
      * `AwsNodePool` names are formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -492,7 +498,9 @@ public java.lang.String getName() {
      *
      *
      * 
-     * Required. The name of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to describe.
+     * Required. The name of the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to
+     * describe.
      * `AwsNodePool` names are formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -520,7 +528,9 @@ public com.google.protobuf.ByteString getNameBytes() {
      *
      *
      * 
-     * Required. The name of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to describe.
+     * Required. The name of the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to
+     * describe.
      * `AwsNodePool` names are formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -547,7 +557,9 @@ public Builder setName(java.lang.String value) {
      *
      *
      * 
-     * Required. The name of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to describe.
+     * Required. The name of the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to
+     * describe.
      * `AwsNodePool` names are formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -570,7 +582,9 @@ public Builder clearName() {
      *
      *
      * 
-     * Required. The name of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to describe.
+     * Required. The name of the
+     * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to
+     * describe.
      * `AwsNodePool` names are formatted as
      * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsNodePoolRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsNodePoolRequestOrBuilder.java
index 1f2fb737867e..10e22c2dfec9 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsNodePoolRequestOrBuilder.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsNodePoolRequestOrBuilder.java
@@ -27,7 +27,9 @@ public interface GetAwsNodePoolRequestOrBuilder
    *
    *
    * 
-   * Required. The name of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to describe.
+   * Required. The name of the
+   * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to
+   * describe.
    * `AwsNodePool` names are formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -45,7 +47,9 @@ public interface GetAwsNodePoolRequestOrBuilder
    *
    *
    * 
-   * Required. The name of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to describe.
+   * Required. The name of the
+   * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to
+   * describe.
    * `AwsNodePool` names are formatted as
    * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsServerConfigRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsServerConfigRequest.java
index 8111180fc999..3748e89f4d80 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsServerConfigRequest.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsServerConfigRequest.java
@@ -73,7 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    *
    * 
-   * Required. The name of the [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource to describe.
+   * Required. The name of the
+   * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource
+   * to describe.
    * `AwsServerConfig` names are formatted as
    * `projects/<project-id>/locations/<region>/awsServerConfig`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -102,7 +104,9 @@ public java.lang.String getName() {
    *
    *
    * 
-   * Required. The name of the [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource to describe.
+   * Required. The name of the
+   * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource
+   * to describe.
    * `AwsServerConfig` names are formatted as
    * `projects/<project-id>/locations/<region>/awsServerConfig`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -464,7 +468,9 @@ public Builder mergeFrom(
      *
      *
      * 
-     * Required. The name of the [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource to describe.
+     * Required. The name of the
+     * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource
+     * to describe.
      * `AwsServerConfig` names are formatted as
      * `projects/<project-id>/locations/<region>/awsServerConfig`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -492,7 +498,9 @@ public java.lang.String getName() {
      *
      *
      * 
-     * Required. The name of the [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource to describe.
+     * Required. The name of the
+     * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource
+     * to describe.
      * `AwsServerConfig` names are formatted as
      * `projects/<project-id>/locations/<region>/awsServerConfig`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -520,7 +528,9 @@ public com.google.protobuf.ByteString getNameBytes() {
      *
      *
      * 
-     * Required. The name of the [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource to describe.
+     * Required. The name of the
+     * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource
+     * to describe.
      * `AwsServerConfig` names are formatted as
      * `projects/<project-id>/locations/<region>/awsServerConfig`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -547,7 +557,9 @@ public Builder setName(java.lang.String value) {
      *
      *
      * 
-     * Required. The name of the [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource to describe.
+     * Required. The name of the
+     * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource
+     * to describe.
      * `AwsServerConfig` names are formatted as
      * `projects/<project-id>/locations/<region>/awsServerConfig`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -570,7 +582,9 @@ public Builder clearName() {
      *
      *
      * 
-     * Required. The name of the [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource to describe.
+     * Required. The name of the
+     * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource
+     * to describe.
      * `AwsServerConfig` names are formatted as
      * `projects/<project-id>/locations/<region>/awsServerConfig`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsServerConfigRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsServerConfigRequestOrBuilder.java
index cc6e8f94080b..4648df8e893b 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsServerConfigRequestOrBuilder.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsServerConfigRequestOrBuilder.java
@@ -27,7 +27,9 @@ public interface GetAwsServerConfigRequestOrBuilder
    *
    *
    * 
-   * Required. The name of the [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource to describe.
+   * Required. The name of the
+   * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource
+   * to describe.
    * `AwsServerConfig` names are formatted as
    * `projects/<project-id>/locations/<region>/awsServerConfig`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -45,7 +47,9 @@ public interface GetAwsServerConfigRequestOrBuilder
    *
    *
    * 
-   * Required. The name of the [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource to describe.
+   * Required. The name of the
+   * [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource
+   * to describe.
    * `AwsServerConfig` names are formatted as
    * `projects/<project-id>/locations/<region>/awsServerConfig`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClientRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClientRequest.java
index 54c239f1bd56..7e5d75a31f45 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClientRequest.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClientRequest.java
@@ -73,8 +73,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    *
    * 
-   * Required. The name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to describe.
-   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as
+   * Required. The name of the
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to
+   * describe.
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are
+   * formatted as
    * `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
    * for more details on Google Cloud resource names.
@@ -102,8 +105,11 @@ public java.lang.String getName() {
    *
    *
    * 
-   * Required. The name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to describe.
-   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as
+   * Required. The name of the
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to
+   * describe.
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are
+   * formatted as
    * `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
    * for more details on Google Cloud resource names.
@@ -464,8 +470,11 @@ public Builder mergeFrom(
      *
      *
      * 
-     * Required. The name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to describe.
-     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as
+     * Required. The name of the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to
+     * describe.
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are
+     * formatted as
      * `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
      * for more details on Google Cloud resource names.
@@ -492,8 +501,11 @@ public java.lang.String getName() {
      *
      *
      * 
-     * Required. The name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to describe.
-     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as
+     * Required. The name of the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to
+     * describe.
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are
+     * formatted as
      * `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
      * for more details on Google Cloud resource names.
@@ -520,8 +532,11 @@ public com.google.protobuf.ByteString getNameBytes() {
      *
      *
      * 
-     * Required. The name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to describe.
-     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as
+     * Required. The name of the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to
+     * describe.
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are
+     * formatted as
      * `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
      * for more details on Google Cloud resource names.
@@ -547,8 +562,11 @@ public Builder setName(java.lang.String value) {
      *
      *
      * 
-     * Required. The name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to describe.
-     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as
+     * Required. The name of the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to
+     * describe.
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are
+     * formatted as
      * `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
      * for more details on Google Cloud resource names.
@@ -570,8 +588,11 @@ public Builder clearName() {
      *
      *
      * 
-     * Required. The name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to describe.
-     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as
+     * Required. The name of the
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to
+     * describe.
+     * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are
+     * formatted as
      * `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
      * for more details on Google Cloud resource names.
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClientRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClientRequestOrBuilder.java
index 98fa0d303c40..561a2f963ce3 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClientRequestOrBuilder.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClientRequestOrBuilder.java
@@ -27,8 +27,11 @@ public interface GetAzureClientRequestOrBuilder
    *
    *
    * 
-   * Required. The name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to describe.
-   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as
+   * Required. The name of the
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to
+   * describe.
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are
+   * formatted as
    * `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
    * for more details on Google Cloud resource names.
@@ -45,8 +48,11 @@ public interface GetAzureClientRequestOrBuilder
    *
    *
    * 
-   * Required. The name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to describe.
-   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as
+   * Required. The name of the
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to
+   * describe.
+   * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are
+   * formatted as
    * `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
    * for more details on Google Cloud resource names.
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClusterRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClusterRequest.java
index c1624512f48e..f6ed2c3644f8 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClusterRequest.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClusterRequest.java
@@ -73,7 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    *
    * 
-   * Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to describe.
+   * Required. The name of the
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to
+   * describe.
    * `AzureCluster` names are formatted as
    * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -102,7 +104,9 @@ public java.lang.String getName() {
    *
    *
    * 
-   * Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to describe.
+   * Required. The name of the
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to
+   * describe.
    * `AzureCluster` names are formatted as
    * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -464,7 +468,9 @@ public Builder mergeFrom(
      *
      *
      * 
-     * Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to describe.
+     * Required. The name of the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to
+     * describe.
      * `AzureCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -492,7 +498,9 @@ public java.lang.String getName() {
      *
      *
      * 
-     * Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to describe.
+     * Required. The name of the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to
+     * describe.
      * `AzureCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -520,7 +528,9 @@ public com.google.protobuf.ByteString getNameBytes() {
      *
      *
      * 
-     * Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to describe.
+     * Required. The name of the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to
+     * describe.
      * `AzureCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -547,7 +557,9 @@ public Builder setName(java.lang.String value) {
      *
      *
      * 
-     * Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to describe.
+     * Required. The name of the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to
+     * describe.
      * `AzureCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -570,7 +582,9 @@ public Builder clearName() {
      *
      *
      * 
-     * Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to describe.
+     * Required. The name of the
+     * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to
+     * describe.
      * `AzureCluster` names are formatted as
      * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClusterRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClusterRequestOrBuilder.java
index 3900a63908bf..83720e4bbb12 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClusterRequestOrBuilder.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClusterRequestOrBuilder.java
@@ -27,7 +27,9 @@ public interface GetAzureClusterRequestOrBuilder
    *
    *
    * 
-   * Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to describe.
+   * Required. The name of the
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to
+   * describe.
    * `AzureCluster` names are formatted as
    * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -45,7 +47,9 @@ public interface GetAzureClusterRequestOrBuilder
    *
    *
    * 
-   * Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to describe.
+   * Required. The name of the
+   * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to
+   * describe.
    * `AzureCluster` names are formatted as
    * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureNodePoolRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureNodePoolRequest.java
index 2fa617447d2a..f394f6b4b426 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureNodePoolRequest.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureNodePoolRequest.java
@@ -73,7 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    *
    * 
-   * Required. The name of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to describe.
+   * Required. The name of the
+   * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to
+   * describe.
    * `AzureNodePool` names are formatted as
    * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -102,7 +104,9 @@ public java.lang.String getName() {
    *
    *
    * 
-   * Required. The name of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to describe.
+   * Required. The name of the
+   * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to
+   * describe.
    * `AzureNodePool` names are formatted as
    * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -464,7 +468,9 @@ public Builder mergeFrom(
      *
      *
      * 
-     * Required. The name of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to describe.
+     * Required. The name of the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to
+     * describe.
      * `AzureNodePool` names are formatted as
      * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -492,7 +498,9 @@ public java.lang.String getName() {
      *
      *
      * 
-     * Required. The name of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to describe.
+     * Required. The name of the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to
+     * describe.
      * `AzureNodePool` names are formatted as
      * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -520,7 +528,9 @@ public com.google.protobuf.ByteString getNameBytes() {
      *
      *
      * 
-     * Required. The name of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to describe.
+     * Required. The name of the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to
+     * describe.
      * `AzureNodePool` names are formatted as
      * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -547,7 +557,9 @@ public Builder setName(java.lang.String value) {
      *
      *
      * 
-     * Required. The name of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to describe.
+     * Required. The name of the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to
+     * describe.
      * `AzureNodePool` names are formatted as
      * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -570,7 +582,9 @@ public Builder clearName() {
      *
      *
      * 
-     * Required. The name of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to describe.
+     * Required. The name of the
+     * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to
+     * describe.
      * `AzureNodePool` names are formatted as
      * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureNodePoolRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureNodePoolRequestOrBuilder.java
index ca77c4beb347..11b10ac93309 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureNodePoolRequestOrBuilder.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureNodePoolRequestOrBuilder.java
@@ -27,7 +27,9 @@ public interface GetAzureNodePoolRequestOrBuilder
    *
    *
    * 
-   * Required. The name of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to describe.
+   * Required. The name of the
+   * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to
+   * describe.
    * `AzureNodePool` names are formatted as
    * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -45,7 +47,9 @@ public interface GetAzureNodePoolRequestOrBuilder
    *
    *
    * 
-   * Required. The name of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to describe.
+   * Required. The name of the
+   * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to
+   * describe.
    * `AzureNodePool` names are formatted as
    * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureServerConfigRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureServerConfigRequest.java
index c62604eed9f6..6d9f2a86ba22 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureServerConfigRequest.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureServerConfigRequest.java
@@ -73,7 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    *
    * 
-   * Required. The name of the [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] resource to describe.
+   * Required. The name of the
+   * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig]
+   * resource to describe.
    * `AzureServerConfig` names are formatted as
    * `projects/<project-id>/locations/<region>/azureServerConfig`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -102,7 +104,9 @@ public java.lang.String getName() {
    *
    *
    * 
-   * Required. The name of the [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] resource to describe.
+   * Required. The name of the
+   * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig]
+   * resource to describe.
    * `AzureServerConfig` names are formatted as
    * `projects/<project-id>/locations/<region>/azureServerConfig`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -466,7 +470,9 @@ public Builder mergeFrom(
      *
      *
      * 
-     * Required. The name of the [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] resource to describe.
+     * Required. The name of the
+     * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig]
+     * resource to describe.
      * `AzureServerConfig` names are formatted as
      * `projects/<project-id>/locations/<region>/azureServerConfig`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -494,7 +500,9 @@ public java.lang.String getName() {
      *
      *
      * 
-     * Required. The name of the [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] resource to describe.
+     * Required. The name of the
+     * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig]
+     * resource to describe.
      * `AzureServerConfig` names are formatted as
      * `projects/<project-id>/locations/<region>/azureServerConfig`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -522,7 +530,9 @@ public com.google.protobuf.ByteString getNameBytes() {
      *
      *
      * 
-     * Required. The name of the [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] resource to describe.
+     * Required. The name of the
+     * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig]
+     * resource to describe.
      * `AzureServerConfig` names are formatted as
      * `projects/<project-id>/locations/<region>/azureServerConfig`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -549,7 +559,9 @@ public Builder setName(java.lang.String value) {
      *
      *
      * 
-     * Required. The name of the [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] resource to describe.
+     * Required. The name of the
+     * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig]
+     * resource to describe.
      * `AzureServerConfig` names are formatted as
      * `projects/<project-id>/locations/<region>/azureServerConfig`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -572,7 +584,9 @@ public Builder clearName() {
      *
      *
      * 
-     * Required. The name of the [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] resource to describe.
+     * Required. The name of the
+     * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig]
+     * resource to describe.
      * `AzureServerConfig` names are formatted as
      * `projects/<project-id>/locations/<region>/azureServerConfig`.
      * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureServerConfigRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureServerConfigRequestOrBuilder.java
index 06a9ba7f9aa4..79e4a4f9eb44 100644
--- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureServerConfigRequestOrBuilder.java
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureServerConfigRequestOrBuilder.java
@@ -27,7 +27,9 @@ public interface GetAzureServerConfigRequestOrBuilder
    *
    *
    * 
-   * Required. The name of the [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] resource to describe.
+   * Required. The name of the
+   * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig]
+   * resource to describe.
    * `AzureServerConfig` names are formatted as
    * `projects/<project-id>/locations/<region>/azureServerConfig`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
@@ -45,7 +47,9 @@ public interface GetAzureServerConfigRequestOrBuilder
    *
    *
    * 
-   * Required. The name of the [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] resource to describe.
+   * Required. The name of the
+   * [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig]
+   * resource to describe.
    * `AzureServerConfig` names are formatted as
    * `projects/<project-id>/locations/<region>/azureServerConfig`.
    * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ImportAttachedClusterRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ImportAttachedClusterRequest.java
new file mode 100644
index 000000000000..ffcbce361e79
--- /dev/null
+++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ImportAttachedClusterRequest.java
@@ -0,0 +1,1323 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/gkemulticloud/v1/attached_service.proto
+
+package com.google.cloud.gkemulticloud.v1;
+
+/**
+ *
+ *
+ * 
+ * Request message for `AttachedClusters.ImportAttachedCluster` method.
+ * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest} + */ +public final class ImportAttachedClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest) + ImportAttachedClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportAttachedClusterRequest.newBuilder() to construct. + private ImportAttachedClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportAttachedClusterRequest() { + parent_ = ""; + fleetMembership_ = ""; + platformVersion_ = ""; + distribution_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportAttachedClusterRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_ImportAttachedClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_ImportAttachedClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest.class, + com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The parent location where this
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * will be created.
+   * Location names are formatted as `projects/<project-id>/locations/<region>`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on Google Cloud resource names.
+   * 
+ * + * + * 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 location where this
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * will be created.
+   * Location names are formatted as `projects/<project-id>/locations/<region>`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on Google Cloud resource names.
+   * 
+ * + * + * 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 VALIDATE_ONLY_FIELD_NUMBER = 2; + private boolean validateOnly_; + /** + * + * + *
+   * If set, only validate the request, but do not actually import the cluster.
+   * 
+ * + * bool validate_only = 2; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int FLEET_MEMBERSHIP_FIELD_NUMBER = 3; + private volatile java.lang.Object fleetMembership_; + /** + * + * + *
+   * Required. The name of the fleet membership resource to import.
+   * 
+ * + * string fleet_membership = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fleetMembership. + */ + @java.lang.Override + public java.lang.String getFleetMembership() { + java.lang.Object ref = fleetMembership_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fleetMembership_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the fleet membership resource to import.
+   * 
+ * + * string fleet_membership = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for fleetMembership. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFleetMembershipBytes() { + java.lang.Object ref = fleetMembership_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fleetMembership_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PLATFORM_VERSION_FIELD_NUMBER = 4; + private volatile java.lang.Object platformVersion_; + /** + * + * + *
+   * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
+   * You can list all supported versions on a given Google Cloud region by
+   * calling
+   * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
+   * 
+ * + * string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The platformVersion. + */ + @java.lang.Override + public java.lang.String getPlatformVersion() { + java.lang.Object ref = platformVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + platformVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
+   * You can list all supported versions on a given Google Cloud region by
+   * calling
+   * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
+   * 
+ * + * string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for platformVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPlatformVersionBytes() { + java.lang.Object ref = platformVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + platformVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISTRIBUTION_FIELD_NUMBER = 5; + private volatile java.lang.Object distribution_; + /** + * + * + *
+   * Required. The Kubernetes distribution of the underlying attached cluster.
+   * Supported values: ["eks", "aks"].
+   * 
+ * + * string distribution = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The distribution. + */ + @java.lang.Override + public java.lang.String getDistribution() { + java.lang.Object ref = distribution_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + distribution_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The Kubernetes distribution of the underlying attached cluster.
+   * Supported values: ["eks", "aks"].
+   * 
+ * + * string distribution = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for distribution. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDistributionBytes() { + java.lang.Object ref = distribution_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + distribution_ = 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 (validateOnly_ != false) { + output.writeBool(2, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fleetMembership_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fleetMembership_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(platformVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, platformVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(distribution_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, distribution_); + } + 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 (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fleetMembership_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, fleetMembership_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(platformVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, platformVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(distribution_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, distribution_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest other = + (com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getFleetMembership().equals(other.getFleetMembership())) return false; + if (!getPlatformVersion().equals(other.getPlatformVersion())) return false; + if (!getDistribution().equals(other.getDistribution())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + FLEET_MEMBERSHIP_FIELD_NUMBER; + hash = (53 * hash) + getFleetMembership().hashCode(); + hash = (37 * hash) + PLATFORM_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getPlatformVersion().hashCode(); + hash = (37 * hash) + DISTRIBUTION_FIELD_NUMBER; + hash = (53 * hash) + getDistribution().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 `AttachedClusters.ImportAttachedCluster` method.
+   * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest) + com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_ImportAttachedClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_ImportAttachedClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest.class, + com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + validateOnly_ = false; + + fleetMembership_ = ""; + + platformVersion_ = ""; + + distribution_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_ImportAttachedClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest + getDefaultInstanceForType() { + return com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest build() { + com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest buildPartial() { + com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest result = + new com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest(this); + result.parent_ = parent_; + result.validateOnly_ = validateOnly_; + result.fleetMembership_ = fleetMembership_; + result.platformVersion_ = platformVersion_; + result.distribution_ = distribution_; + 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.gkemulticloud.v1.ImportAttachedClusterRequest) { + return mergeFrom((com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest other) { + if (other + == com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getFleetMembership().isEmpty()) { + fleetMembership_ = other.fleetMembership_; + onChanged(); + } + if (!other.getPlatformVersion().isEmpty()) { + platformVersion_ = other.platformVersion_; + onChanged(); + } + if (!other.getDistribution().isEmpty()) { + distribution_ = other.distribution_; + 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(); + + break; + } // case 10 + case 16: + { + validateOnly_ = input.readBool(); + + break; + } // case 16 + case 26: + { + fleetMembership_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + platformVersion_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + distribution_ = input.readStringRequireUtf8(); + + 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 java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent location where this
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * will be created.
+     * Location names are formatted as `projects/<project-id>/locations/<region>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on Google Cloud resource names.
+     * 
+ * + * + * 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 location where this
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * will be created.
+     * Location names are formatted as `projects/<project-id>/locations/<region>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on Google Cloud resource names.
+     * 
+ * + * + * 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 location where this
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * will be created.
+     * Location names are formatted as `projects/<project-id>/locations/<region>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on Google Cloud resource names.
+     * 
+ * + * + * 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent location where this
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * will be created.
+     * Location names are formatted as `projects/<project-id>/locations/<region>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on Google Cloud resource names.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent location where this
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * will be created.
+     * Location names are formatted as `projects/<project-id>/locations/<region>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on Google Cloud resource names.
+     * 
+ * + * + * 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; + onChanged(); + return this; + } + + private boolean validateOnly_; + /** + * + * + *
+     * If set, only validate the request, but do not actually import the cluster.
+     * 
+ * + * bool validate_only = 2; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + /** + * + * + *
+     * If set, only validate the request, but do not actually import the cluster.
+     * 
+ * + * bool validate_only = 2; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If set, only validate the request, but do not actually import the cluster.
+     * 
+ * + * bool validate_only = 2; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object fleetMembership_ = ""; + /** + * + * + *
+     * Required. The name of the fleet membership resource to import.
+     * 
+ * + * string fleet_membership = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fleetMembership. + */ + public java.lang.String getFleetMembership() { + java.lang.Object ref = fleetMembership_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fleetMembership_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the fleet membership resource to import.
+     * 
+ * + * string fleet_membership = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for fleetMembership. + */ + public com.google.protobuf.ByteString getFleetMembershipBytes() { + java.lang.Object ref = fleetMembership_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fleetMembership_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the fleet membership resource to import.
+     * 
+ * + * string fleet_membership = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The fleetMembership to set. + * @return This builder for chaining. + */ + public Builder setFleetMembership(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + fleetMembership_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the fleet membership resource to import.
+     * 
+ * + * string fleet_membership = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFleetMembership() { + + fleetMembership_ = getDefaultInstance().getFleetMembership(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the fleet membership resource to import.
+     * 
+ * + * string fleet_membership = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for fleetMembership to set. + * @return This builder for chaining. + */ + public Builder setFleetMembershipBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fleetMembership_ = value; + onChanged(); + return this; + } + + private java.lang.Object platformVersion_ = ""; + /** + * + * + *
+     * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
+     * You can list all supported versions on a given Google Cloud region by
+     * calling
+     * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
+     * 
+ * + * string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The platformVersion. + */ + public java.lang.String getPlatformVersion() { + java.lang.Object ref = platformVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + platformVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
+     * You can list all supported versions on a given Google Cloud region by
+     * calling
+     * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
+     * 
+ * + * string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for platformVersion. + */ + public com.google.protobuf.ByteString getPlatformVersionBytes() { + java.lang.Object ref = platformVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + platformVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
+     * You can list all supported versions on a given Google Cloud region by
+     * calling
+     * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
+     * 
+ * + * string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The platformVersion to set. + * @return This builder for chaining. + */ + public Builder setPlatformVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + platformVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
+     * You can list all supported versions on a given Google Cloud region by
+     * calling
+     * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
+     * 
+ * + * string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPlatformVersion() { + + platformVersion_ = getDefaultInstance().getPlatformVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
+     * You can list all supported versions on a given Google Cloud region by
+     * calling
+     * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
+     * 
+ * + * string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for platformVersion to set. + * @return This builder for chaining. + */ + public Builder setPlatformVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + platformVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object distribution_ = ""; + /** + * + * + *
+     * Required. The Kubernetes distribution of the underlying attached cluster.
+     * Supported values: ["eks", "aks"].
+     * 
+ * + * string distribution = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The distribution. + */ + public java.lang.String getDistribution() { + java.lang.Object ref = distribution_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + distribution_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The Kubernetes distribution of the underlying attached cluster.
+     * Supported values: ["eks", "aks"].
+     * 
+ * + * string distribution = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for distribution. + */ + public com.google.protobuf.ByteString getDistributionBytes() { + java.lang.Object ref = distribution_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + distribution_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The Kubernetes distribution of the underlying attached cluster.
+     * Supported values: ["eks", "aks"].
+     * 
+ * + * string distribution = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The distribution to set. + * @return This builder for chaining. + */ + public Builder setDistribution(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + distribution_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Kubernetes distribution of the underlying attached cluster.
+     * Supported values: ["eks", "aks"].
+     * 
+ * + * string distribution = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDistribution() { + + distribution_ = getDefaultInstance().getDistribution(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Kubernetes distribution of the underlying attached cluster.
+     * Supported values: ["eks", "aks"].
+     * 
+ * + * string distribution = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for distribution to set. + * @return This builder for chaining. + */ + public Builder setDistributionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + distribution_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest) + private static final com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest(); + } + + public static com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportAttachedClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ImportAttachedClusterRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ImportAttachedClusterRequestOrBuilder.java new file mode 100644 index 000000000000..c038ce499203 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ImportAttachedClusterRequestOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_service.proto + +package com.google.cloud.gkemulticloud.v1; + +public interface ImportAttachedClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent location where this
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * will be created.
+   * Location names are formatted as `projects/<project-id>/locations/<region>`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on Google Cloud resource names.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent location where this
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * will be created.
+   * Location names are formatted as `projects/<project-id>/locations/<region>`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on Google Cloud resource names.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * If set, only validate the request, but do not actually import the cluster.
+   * 
+ * + * bool validate_only = 2; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * Required. The name of the fleet membership resource to import.
+   * 
+ * + * string fleet_membership = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fleetMembership. + */ + java.lang.String getFleetMembership(); + /** + * + * + *
+   * Required. The name of the fleet membership resource to import.
+   * 
+ * + * string fleet_membership = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for fleetMembership. + */ + com.google.protobuf.ByteString getFleetMembershipBytes(); + + /** + * + * + *
+   * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
+   * You can list all supported versions on a given Google Cloud region by
+   * calling
+   * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
+   * 
+ * + * string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The platformVersion. + */ + java.lang.String getPlatformVersion(); + /** + * + * + *
+   * Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
+   * You can list all supported versions on a given Google Cloud region by
+   * calling
+   * [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
+   * 
+ * + * string platform_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for platformVersion. + */ + com.google.protobuf.ByteString getPlatformVersionBytes(); + + /** + * + * + *
+   * Required. The Kubernetes distribution of the underlying attached cluster.
+   * Supported values: ["eks", "aks"].
+   * 
+ * + * string distribution = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The distribution. + */ + java.lang.String getDistribution(); + /** + * + * + *
+   * Required. The Kubernetes distribution of the underlying attached cluster.
+   * Supported values: ["eks", "aks"].
+   * 
+ * + * string distribution = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for distribution. + */ + com.google.protobuf.ByteString getDistributionBytes(); +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAttachedClustersRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAttachedClustersRequest.java new file mode 100644 index 000000000000..9adaff3ecf99 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAttachedClustersRequest.java @@ -0,0 +1,964 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_service.proto + +package com.google.cloud.gkemulticloud.v1; + +/** + * + * + *
+ * Request message for `AttachedClusters.ListAttachedClusters` method.
+ * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.ListAttachedClustersRequest} + */ +public final class ListAttachedClustersRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.ListAttachedClustersRequest) + ListAttachedClustersRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAttachedClustersRequest.newBuilder() to construct. + private ListAttachedClustersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAttachedClustersRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAttachedClustersRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_ListAttachedClustersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_ListAttachedClustersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest.class, + com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The parent location which owns this collection of
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources.
+   * Location names are formatted as `projects/<project-id>/locations/<region>`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on GCP resource names.
+   * 
+ * + * + * 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 location which owns this collection of
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources.
+   * Location names are formatted as `projects/<project-id>/locations/<region>`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on GCP resource names.
+   * 
+ * + * + * 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_; + /** + * + * + *
+   * The maximum number of items to return.
+   * If not specified, a default value of 50 will be used by the service.
+   * Regardless of the pageSize value, the response can include a partial list
+   * and a caller should only rely on response's
+   * [nextPageToken][google.cloud.gkemulticloud.v1.ListAttachedClustersResponse.next_page_token]
+   * to determine if there are more instances left to be queried.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * The `nextPageToken` value returned from a previous
+   * [attachedClusters.list][google.cloud.gkemulticloud.v1.AttachedClusters.ListAttachedClusters]
+   * 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 `nextPageToken` value returned from a previous
+   * [attachedClusters.list][google.cloud.gkemulticloud.v1.AttachedClusters.ListAttachedClusters]
+   * 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.gkemulticloud.v1.ListAttachedClustersRequest)) { + return super.equals(obj); + } + com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest other = + (com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest) 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.gkemulticloud.v1.ListAttachedClustersRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 `AttachedClusters.ListAttachedClusters` method.
+   * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.ListAttachedClustersRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkemulticloud.v1.ListAttachedClustersRequest) + com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_ListAttachedClustersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_ListAttachedClustersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest.class, + com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest.Builder.class); + } + + // Construct using com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_ListAttachedClustersRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest + getDefaultInstanceForType() { + return com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest build() { + com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest buildPartial() { + com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest result = + new com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + 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.gkemulticloud.v1.ListAttachedClustersRequest) { + return mergeFrom((com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest other) { + if (other + == com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + 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(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + 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 java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent location which owns this collection of
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources.
+     * Location names are formatted as `projects/<project-id>/locations/<region>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on GCP resource names.
+     * 
+ * + * + * 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 location which owns this collection of
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources.
+     * Location names are formatted as `projects/<project-id>/locations/<region>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on GCP resource names.
+     * 
+ * + * + * 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 location which owns this collection of
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources.
+     * Location names are formatted as `projects/<project-id>/locations/<region>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on GCP resource names.
+     * 
+ * + * + * 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent location which owns this collection of
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources.
+     * Location names are formatted as `projects/<project-id>/locations/<region>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on GCP resource names.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent location which owns this collection of
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources.
+     * Location names are formatted as `projects/<project-id>/locations/<region>`.
+     * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+     * for more details on GCP resource names.
+     * 
+ * + * + * 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; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of items to return.
+     * If not specified, a default value of 50 will be used by the service.
+     * Regardless of the pageSize value, the response can include a partial list
+     * and a caller should only rely on response's
+     * [nextPageToken][google.cloud.gkemulticloud.v1.ListAttachedClustersResponse.next_page_token]
+     * to determine if there are more instances left to be queried.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of items to return.
+     * If not specified, a default value of 50 will be used by the service.
+     * Regardless of the pageSize value, the response can include a partial list
+     * and a caller should only rely on response's
+     * [nextPageToken][google.cloud.gkemulticloud.v1.ListAttachedClustersResponse.next_page_token]
+     * to determine if there are more instances left to be queried.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of items to return.
+     * If not specified, a default value of 50 will be used by the service.
+     * Regardless of the pageSize value, the response can include a partial list
+     * and a caller should only rely on response's
+     * [nextPageToken][google.cloud.gkemulticloud.v1.ListAttachedClustersResponse.next_page_token]
+     * to determine if there are more instances left to be queried.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * The `nextPageToken` value returned from a previous
+     * [attachedClusters.list][google.cloud.gkemulticloud.v1.AttachedClusters.ListAttachedClusters]
+     * 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 `nextPageToken` value returned from a previous
+     * [attachedClusters.list][google.cloud.gkemulticloud.v1.AttachedClusters.ListAttachedClusters]
+     * 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 `nextPageToken` value returned from a previous
+     * [attachedClusters.list][google.cloud.gkemulticloud.v1.AttachedClusters.ListAttachedClusters]
+     * 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; + onChanged(); + return this; + } + /** + * + * + *
+     * The `nextPageToken` value returned from a previous
+     * [attachedClusters.list][google.cloud.gkemulticloud.v1.AttachedClusters.ListAttachedClusters]
+     * request, if any.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * The `nextPageToken` value returned from a previous
+     * [attachedClusters.list][google.cloud.gkemulticloud.v1.AttachedClusters.ListAttachedClusters]
+     * 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkemulticloud.v1.ListAttachedClustersRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkemulticloud.v1.ListAttachedClustersRequest) + private static final com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest(); + } + + public static com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAttachedClustersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAttachedClustersRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAttachedClustersRequestOrBuilder.java new file mode 100644 index 000000000000..d5f3c614f08a --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAttachedClustersRequestOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_service.proto + +package com.google.cloud.gkemulticloud.v1; + +public interface ListAttachedClustersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.ListAttachedClustersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent location which owns this collection of
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources.
+   * Location names are formatted as `projects/<project-id>/locations/<region>`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on GCP resource names.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent location which owns this collection of
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources.
+   * Location names are formatted as `projects/<project-id>/locations/<region>`.
+   * See [Resource Names](https://cloud.google.com/apis/design/resource_names)
+   * for more details on GCP resource names.
+   * 
+ * + * + * 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.
+   * If not specified, a default value of 50 will be used by the service.
+   * Regardless of the pageSize value, the response can include a partial list
+   * and a caller should only rely on response's
+   * [nextPageToken][google.cloud.gkemulticloud.v1.ListAttachedClustersResponse.next_page_token]
+   * to determine if there are more instances left to be queried.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * The `nextPageToken` value returned from a previous
+   * [attachedClusters.list][google.cloud.gkemulticloud.v1.AttachedClusters.ListAttachedClusters]
+   * request, if any.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * The `nextPageToken` value returned from a previous
+   * [attachedClusters.list][google.cloud.gkemulticloud.v1.AttachedClusters.ListAttachedClusters]
+   * request, if any.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAttachedClustersResponse.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAttachedClustersResponse.java new file mode 100644 index 000000000000..5703983e6e53 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAttachedClustersResponse.java @@ -0,0 +1,1156 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_service.proto + +package com.google.cloud.gkemulticloud.v1; + +/** + * + * + *
+ * Response message for `AttachedClusters.ListAttachedClusters` method.
+ * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.ListAttachedClustersResponse} + */ +public final class ListAttachedClustersResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.ListAttachedClustersResponse) + ListAttachedClustersResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAttachedClustersResponse.newBuilder() to construct. + private ListAttachedClustersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAttachedClustersResponse() { + attachedClusters_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAttachedClustersResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_ListAttachedClustersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_ListAttachedClustersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse.class, + com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse.Builder.class); + } + + public static final int ATTACHED_CLUSTERS_FIELD_NUMBER = 1; + private java.util.List attachedClusters_; + /** + * + * + *
+   * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+   * resources in the specified GCP project and region region.
+   * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + */ + @java.lang.Override + public java.util.List + getAttachedClustersList() { + return attachedClusters_; + } + /** + * + * + *
+   * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+   * resources in the specified GCP project and region region.
+   * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + */ + @java.lang.Override + public java.util.List + getAttachedClustersOrBuilderList() { + return attachedClusters_; + } + /** + * + * + *
+   * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+   * resources in the specified GCP project and region region.
+   * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + */ + @java.lang.Override + public int getAttachedClustersCount() { + return attachedClusters_.size(); + } + /** + * + * + *
+   * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+   * resources in the specified GCP project and region region.
+   * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedCluster getAttachedClusters(int index) { + return attachedClusters_.get(index); + } + /** + * + * + *
+   * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+   * resources in the specified GCP project and region region.
+   * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedClusterOrBuilder getAttachedClustersOrBuilder( + int index) { + return attachedClusters_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + 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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 < attachedClusters_.size(); i++) { + output.writeMessage(1, attachedClusters_.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 < attachedClusters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, attachedClusters_.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.gkemulticloud.v1.ListAttachedClustersResponse)) { + return super.equals(obj); + } + com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse other = + (com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse) obj; + + if (!getAttachedClustersList().equals(other.getAttachedClustersList())) 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 (getAttachedClustersCount() > 0) { + hash = (37 * hash) + ATTACHED_CLUSTERS_FIELD_NUMBER; + hash = (53 * hash) + getAttachedClustersList().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.gkemulticloud.v1.ListAttachedClustersResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 `AttachedClusters.ListAttachedClusters` method.
+   * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.ListAttachedClustersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkemulticloud.v1.ListAttachedClustersResponse) + com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_ListAttachedClustersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_ListAttachedClustersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse.class, + com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse.Builder.class); + } + + // Construct using com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (attachedClustersBuilder_ == null) { + attachedClusters_ = java.util.Collections.emptyList(); + } else { + attachedClusters_ = null; + attachedClustersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_ListAttachedClustersResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse + getDefaultInstanceForType() { + return com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse build() { + com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse buildPartial() { + com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse result = + new com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse(this); + int from_bitField0_ = bitField0_; + if (attachedClustersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + attachedClusters_ = java.util.Collections.unmodifiableList(attachedClusters_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.attachedClusters_ = attachedClusters_; + } else { + result.attachedClusters_ = attachedClustersBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + 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.gkemulticloud.v1.ListAttachedClustersResponse) { + return mergeFrom((com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse other) { + if (other + == com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse.getDefaultInstance()) + return this; + if (attachedClustersBuilder_ == null) { + if (!other.attachedClusters_.isEmpty()) { + if (attachedClusters_.isEmpty()) { + attachedClusters_ = other.attachedClusters_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAttachedClustersIsMutable(); + attachedClusters_.addAll(other.attachedClusters_); + } + onChanged(); + } + } else { + if (!other.attachedClusters_.isEmpty()) { + if (attachedClustersBuilder_.isEmpty()) { + attachedClustersBuilder_.dispose(); + attachedClustersBuilder_ = null; + attachedClusters_ = other.attachedClusters_; + bitField0_ = (bitField0_ & ~0x00000001); + attachedClustersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAttachedClustersFieldBuilder() + : null; + } else { + attachedClustersBuilder_.addAllMessages(other.attachedClusters_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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.gkemulticloud.v1.AttachedCluster m = + input.readMessage( + com.google.cloud.gkemulticloud.v1.AttachedCluster.parser(), + extensionRegistry); + if (attachedClustersBuilder_ == null) { + ensureAttachedClustersIsMutable(); + attachedClusters_.add(m); + } else { + attachedClustersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + 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 attachedClusters_ = + java.util.Collections.emptyList(); + + private void ensureAttachedClustersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + attachedClusters_ = + new java.util.ArrayList( + attachedClusters_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AttachedCluster, + com.google.cloud.gkemulticloud.v1.AttachedCluster.Builder, + com.google.cloud.gkemulticloud.v1.AttachedClusterOrBuilder> + attachedClustersBuilder_; + + /** + * + * + *
+     * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+     * resources in the specified GCP project and region region.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + */ + public java.util.List + getAttachedClustersList() { + if (attachedClustersBuilder_ == null) { + return java.util.Collections.unmodifiableList(attachedClusters_); + } else { + return attachedClustersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+     * resources in the specified GCP project and region region.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + */ + public int getAttachedClustersCount() { + if (attachedClustersBuilder_ == null) { + return attachedClusters_.size(); + } else { + return attachedClustersBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+     * resources in the specified GCP project and region region.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + */ + public com.google.cloud.gkemulticloud.v1.AttachedCluster getAttachedClusters(int index) { + if (attachedClustersBuilder_ == null) { + return attachedClusters_.get(index); + } else { + return attachedClustersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+     * resources in the specified GCP project and region region.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + */ + public Builder setAttachedClusters( + int index, com.google.cloud.gkemulticloud.v1.AttachedCluster value) { + if (attachedClustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachedClustersIsMutable(); + attachedClusters_.set(index, value); + onChanged(); + } else { + attachedClustersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+     * resources in the specified GCP project and region region.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + */ + public Builder setAttachedClusters( + int index, com.google.cloud.gkemulticloud.v1.AttachedCluster.Builder builderForValue) { + if (attachedClustersBuilder_ == null) { + ensureAttachedClustersIsMutable(); + attachedClusters_.set(index, builderForValue.build()); + onChanged(); + } else { + attachedClustersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+     * resources in the specified GCP project and region region.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + */ + public Builder addAttachedClusters(com.google.cloud.gkemulticloud.v1.AttachedCluster value) { + if (attachedClustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachedClustersIsMutable(); + attachedClusters_.add(value); + onChanged(); + } else { + attachedClustersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+     * resources in the specified GCP project and region region.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + */ + public Builder addAttachedClusters( + int index, com.google.cloud.gkemulticloud.v1.AttachedCluster value) { + if (attachedClustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachedClustersIsMutable(); + attachedClusters_.add(index, value); + onChanged(); + } else { + attachedClustersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+     * resources in the specified GCP project and region region.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + */ + public Builder addAttachedClusters( + com.google.cloud.gkemulticloud.v1.AttachedCluster.Builder builderForValue) { + if (attachedClustersBuilder_ == null) { + ensureAttachedClustersIsMutable(); + attachedClusters_.add(builderForValue.build()); + onChanged(); + } else { + attachedClustersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+     * resources in the specified GCP project and region region.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + */ + public Builder addAttachedClusters( + int index, com.google.cloud.gkemulticloud.v1.AttachedCluster.Builder builderForValue) { + if (attachedClustersBuilder_ == null) { + ensureAttachedClustersIsMutable(); + attachedClusters_.add(index, builderForValue.build()); + onChanged(); + } else { + attachedClustersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+     * resources in the specified GCP project and region region.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + */ + public Builder addAllAttachedClusters( + java.lang.Iterable values) { + if (attachedClustersBuilder_ == null) { + ensureAttachedClustersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attachedClusters_); + onChanged(); + } else { + attachedClustersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+     * resources in the specified GCP project and region region.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + */ + public Builder clearAttachedClusters() { + if (attachedClustersBuilder_ == null) { + attachedClusters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + attachedClustersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+     * resources in the specified GCP project and region region.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + */ + public Builder removeAttachedClusters(int index) { + if (attachedClustersBuilder_ == null) { + ensureAttachedClustersIsMutable(); + attachedClusters_.remove(index); + onChanged(); + } else { + attachedClustersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+     * resources in the specified GCP project and region region.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + */ + public com.google.cloud.gkemulticloud.v1.AttachedCluster.Builder getAttachedClustersBuilder( + int index) { + return getAttachedClustersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+     * resources in the specified GCP project and region region.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + */ + public com.google.cloud.gkemulticloud.v1.AttachedClusterOrBuilder getAttachedClustersOrBuilder( + int index) { + if (attachedClustersBuilder_ == null) { + return attachedClusters_.get(index); + } else { + return attachedClustersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+     * resources in the specified GCP project and region region.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + */ + public java.util.List + getAttachedClustersOrBuilderList() { + if (attachedClustersBuilder_ != null) { + return attachedClustersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(attachedClusters_); + } + } + /** + * + * + *
+     * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+     * resources in the specified GCP project and region region.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + */ + public com.google.cloud.gkemulticloud.v1.AttachedCluster.Builder addAttachedClustersBuilder() { + return getAttachedClustersFieldBuilder() + .addBuilder(com.google.cloud.gkemulticloud.v1.AttachedCluster.getDefaultInstance()); + } + /** + * + * + *
+     * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+     * resources in the specified GCP project and region region.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + */ + public com.google.cloud.gkemulticloud.v1.AttachedCluster.Builder addAttachedClustersBuilder( + int index) { + return getAttachedClustersFieldBuilder() + .addBuilder( + index, com.google.cloud.gkemulticloud.v1.AttachedCluster.getDefaultInstance()); + } + /** + * + * + *
+     * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+     * resources in the specified GCP project and region region.
+     * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + */ + public java.util.List + getAttachedClustersBuilderList() { + return getAttachedClustersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AttachedCluster, + com.google.cloud.gkemulticloud.v1.AttachedCluster.Builder, + com.google.cloud.gkemulticloud.v1.AttachedClusterOrBuilder> + getAttachedClustersFieldBuilder() { + if (attachedClustersBuilder_ == null) { + attachedClustersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AttachedCluster, + com.google.cloud.gkemulticloud.v1.AttachedCluster.Builder, + com.google.cloud.gkemulticloud.v1.AttachedClusterOrBuilder>( + attachedClusters_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + attachedClusters_ = null; + } + return attachedClustersBuilder_; + } + + 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; + 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(); + 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; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkemulticloud.v1.ListAttachedClustersResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkemulticloud.v1.ListAttachedClustersResponse) + private static final com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse(); + } + + public static com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAttachedClustersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAttachedClustersResponseOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAttachedClustersResponseOrBuilder.java new file mode 100644 index 000000000000..4c306cdf484b --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAttachedClustersResponseOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_service.proto + +package com.google.cloud.gkemulticloud.v1; + +public interface ListAttachedClustersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.ListAttachedClustersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+   * resources in the specified GCP project and region region.
+   * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + */ + java.util.List getAttachedClustersList(); + /** + * + * + *
+   * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+   * resources in the specified GCP project and region region.
+   * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + */ + com.google.cloud.gkemulticloud.v1.AttachedCluster getAttachedClusters(int index); + /** + * + * + *
+   * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+   * resources in the specified GCP project and region region.
+   * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + */ + int getAttachedClustersCount(); + /** + * + * + *
+   * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+   * resources in the specified GCP project and region region.
+   * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + */ + java.util.List + getAttachedClustersOrBuilderList(); + /** + * + * + *
+   * A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]
+   * resources in the specified GCP project and region region.
+   * 
+ * + * repeated .google.cloud.gkemulticloud.v1.AttachedCluster attached_clusters = 1; + */ + com.google.cloud.gkemulticloud.v1.AttachedClusterOrBuilder getAttachedClustersOrBuilder( + 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(); +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsClustersRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsClustersRequest.java index 1c081b168d65..3b569e4f83f3 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsClustersRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsClustersRequest.java @@ -139,8 +139,8 @@ public com.google.protobuf.ByteString getParentBytes() { * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. *
* * int32 page_size = 2; @@ -159,7 +159,8 @@ public int getPageSize() { * *
    * The `nextPageToken` value returned from a previous
-   * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] request, if any.
+   * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters]
+   * request, if any.
    * 
* * string page_token = 3; @@ -183,7 +184,8 @@ public java.lang.String getPageToken() { * *
    * The `nextPageToken` value returned from a previous
-   * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] request, if any.
+   * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters]
+   * request, if any.
    * 
* * string page_token = 3; @@ -722,8 +724,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. *
* * int32 page_size = 2; @@ -742,8 +744,8 @@ public int getPageSize() { * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. *
* * int32 page_size = 2; @@ -765,8 +767,8 @@ public Builder setPageSize(int value) { * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. *
* * int32 page_size = 2; @@ -786,7 +788,8 @@ public Builder clearPageSize() { * *
      * The `nextPageToken` value returned from a previous
-     * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] request, if any.
+     * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters]
+     * request, if any.
      * 
* * string page_token = 3; @@ -809,7 +812,8 @@ public java.lang.String getPageToken() { * *
      * The `nextPageToken` value returned from a previous
-     * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] request, if any.
+     * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters]
+     * request, if any.
      * 
* * string page_token = 3; @@ -832,7 +836,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * *
      * The `nextPageToken` value returned from a previous
-     * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] request, if any.
+     * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters]
+     * request, if any.
      * 
* * string page_token = 3; @@ -854,7 +859,8 @@ public Builder setPageToken(java.lang.String value) { * *
      * The `nextPageToken` value returned from a previous
-     * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] request, if any.
+     * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters]
+     * request, if any.
      * 
* * string page_token = 3; @@ -872,7 +878,8 @@ public Builder clearPageToken() { * *
      * The `nextPageToken` value returned from a previous
-     * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] request, if any.
+     * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters]
+     * request, if any.
      * 
* * string page_token = 3; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsClustersRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsClustersRequestOrBuilder.java index f585722dec04..8ca5e0f347f5 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsClustersRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsClustersRequestOrBuilder.java @@ -68,8 +68,8 @@ public interface ListAwsClustersRequestOrBuilder * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. *
* * int32 page_size = 2; @@ -83,7 +83,8 @@ public interface ListAwsClustersRequestOrBuilder * *
    * The `nextPageToken` value returned from a previous
-   * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] request, if any.
+   * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters]
+   * request, if any.
    * 
* * string page_token = 3; @@ -96,7 +97,8 @@ public interface ListAwsClustersRequestOrBuilder * *
    * The `nextPageToken` value returned from a previous
-   * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] request, if any.
+   * [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters]
+   * request, if any.
    * 
* * string page_token = 3; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsClustersResponse.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsClustersResponse.java index 960015f01c70..7a0c9d25b979 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsClustersResponse.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsClustersResponse.java @@ -74,8 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP
-   * project and region region.
+   * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+   * in the specified GCP project and region region.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; @@ -88,8 +88,8 @@ public java.util.List getAwsCluste * * *
-   * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP
-   * project and region region.
+   * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+   * in the specified GCP project and region region.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; @@ -103,8 +103,8 @@ public java.util.List getAwsCluste * * *
-   * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP
-   * project and region region.
+   * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+   * in the specified GCP project and region region.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; @@ -117,8 +117,8 @@ public int getAwsClustersCount() { * * *
-   * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP
-   * project and region region.
+   * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+   * in the specified GCP project and region region.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; @@ -131,8 +131,8 @@ public com.google.cloud.gkemulticloud.v1.AwsCluster getAwsClusters(int index) { * * *
-   * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP
-   * project and region region.
+   * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+   * in the specified GCP project and region region.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; @@ -615,8 +615,8 @@ private void ensureAwsClustersIsMutable() { * * *
-     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+     * in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; @@ -632,8 +632,8 @@ public java.util.List getAwsCluste * * *
-     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+     * in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; @@ -649,8 +649,8 @@ public int getAwsClustersCount() { * * *
-     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+     * in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; @@ -666,8 +666,8 @@ public com.google.cloud.gkemulticloud.v1.AwsCluster getAwsClusters(int index) { * * *
-     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+     * in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; @@ -689,8 +689,8 @@ public Builder setAwsClusters(int index, com.google.cloud.gkemulticloud.v1.AwsCl * * *
-     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+     * in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; @@ -710,8 +710,8 @@ public Builder setAwsClusters( * * *
-     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+     * in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; @@ -733,8 +733,8 @@ public Builder addAwsClusters(com.google.cloud.gkemulticloud.v1.AwsCluster value * * *
-     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+     * in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; @@ -756,8 +756,8 @@ public Builder addAwsClusters(int index, com.google.cloud.gkemulticloud.v1.AwsCl * * *
-     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+     * in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; @@ -777,8 +777,8 @@ public Builder addAwsClusters( * * *
-     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+     * in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; @@ -798,8 +798,8 @@ public Builder addAwsClusters( * * *
-     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+     * in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; @@ -819,8 +819,8 @@ public Builder addAllAwsClusters( * * *
-     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+     * in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; @@ -839,8 +839,8 @@ public Builder clearAwsClusters() { * * *
-     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+     * in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; @@ -859,8 +859,8 @@ public Builder removeAwsClusters(int index) { * * *
-     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+     * in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; @@ -872,8 +872,8 @@ public com.google.cloud.gkemulticloud.v1.AwsCluster.Builder getAwsClustersBuilde * * *
-     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+     * in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; @@ -890,8 +890,8 @@ public com.google.cloud.gkemulticloud.v1.AwsClusterOrBuilder getAwsClustersOrBui * * *
-     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+     * in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; @@ -908,8 +908,8 @@ public com.google.cloud.gkemulticloud.v1.AwsClusterOrBuilder getAwsClustersOrBui * * *
-     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+     * in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; @@ -922,8 +922,8 @@ public com.google.cloud.gkemulticloud.v1.AwsCluster.Builder addAwsClustersBuilde * * *
-     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+     * in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; @@ -936,8 +936,8 @@ public com.google.cloud.gkemulticloud.v1.AwsCluster.Builder addAwsClustersBuilde * * *
-     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+     * in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsClustersResponseOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsClustersResponseOrBuilder.java index 20d9c5daa21a..1554083a278e 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsClustersResponseOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsClustersResponseOrBuilder.java @@ -27,8 +27,8 @@ public interface ListAwsClustersResponseOrBuilder * * *
-   * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP
-   * project and region region.
+   * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+   * in the specified GCP project and region region.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; @@ -38,8 +38,8 @@ public interface ListAwsClustersResponseOrBuilder * * *
-   * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP
-   * project and region region.
+   * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+   * in the specified GCP project and region region.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; @@ -49,8 +49,8 @@ public interface ListAwsClustersResponseOrBuilder * * *
-   * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP
-   * project and region region.
+   * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+   * in the specified GCP project and region region.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; @@ -60,8 +60,8 @@ public interface ListAwsClustersResponseOrBuilder * * *
-   * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP
-   * project and region region.
+   * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+   * in the specified GCP project and region region.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; @@ -72,8 +72,8 @@ public interface ListAwsClustersResponseOrBuilder * * *
-   * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP
-   * project and region region.
+   * A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources
+   * in the specified GCP project and region region.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AwsCluster aws_clusters = 1; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsNodePoolsRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsNodePoolsRequest.java index d74e927a8758..6d9a13797880 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsNodePoolsRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsNodePoolsRequest.java @@ -141,8 +141,8 @@ public com.google.protobuf.ByteString getParentBytes() { * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. *
* * int32 page_size = 2; @@ -161,7 +161,8 @@ public int getPageSize() { * *
    * The `nextPageToken` value returned from a previous
-   * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] request, if any.
+   * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools]
+   * request, if any.
    * 
* * string page_token = 3; @@ -185,7 +186,8 @@ public java.lang.String getPageToken() { * *
    * The `nextPageToken` value returned from a previous
-   * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] request, if any.
+   * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools]
+   * request, if any.
    * 
* * string page_token = 3; @@ -729,8 +731,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. *
* * int32 page_size = 2; @@ -749,8 +751,8 @@ public int getPageSize() { * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. *
* * int32 page_size = 2; @@ -772,8 +774,8 @@ public Builder setPageSize(int value) { * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. *
* * int32 page_size = 2; @@ -793,7 +795,8 @@ public Builder clearPageSize() { * *
      * The `nextPageToken` value returned from a previous
-     * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] request, if any.
+     * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools]
+     * request, if any.
      * 
* * string page_token = 3; @@ -816,7 +819,8 @@ public java.lang.String getPageToken() { * *
      * The `nextPageToken` value returned from a previous
-     * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] request, if any.
+     * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools]
+     * request, if any.
      * 
* * string page_token = 3; @@ -839,7 +843,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * *
      * The `nextPageToken` value returned from a previous
-     * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] request, if any.
+     * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools]
+     * request, if any.
      * 
* * string page_token = 3; @@ -861,7 +866,8 @@ public Builder setPageToken(java.lang.String value) { * *
      * The `nextPageToken` value returned from a previous
-     * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] request, if any.
+     * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools]
+     * request, if any.
      * 
* * string page_token = 3; @@ -879,7 +885,8 @@ public Builder clearPageToken() { * *
      * The `nextPageToken` value returned from a previous
-     * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] request, if any.
+     * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools]
+     * request, if any.
      * 
* * string page_token = 3; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsNodePoolsRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsNodePoolsRequestOrBuilder.java index 1176d7504b0a..89525d515468 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsNodePoolsRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsNodePoolsRequestOrBuilder.java @@ -70,8 +70,8 @@ public interface ListAwsNodePoolsRequestOrBuilder * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. *
* * int32 page_size = 2; @@ -85,7 +85,8 @@ public interface ListAwsNodePoolsRequestOrBuilder * *
    * The `nextPageToken` value returned from a previous
-   * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] request, if any.
+   * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools]
+   * request, if any.
    * 
* * string page_token = 3; @@ -98,7 +99,8 @@ public interface ListAwsNodePoolsRequestOrBuilder * *
    * The `nextPageToken` value returned from a previous
-   * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] request, if any.
+   * [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools]
+   * request, if any.
    * 
* * string page_token = 3; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsNodePoolsResponse.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsNodePoolsResponse.java index 82a9878e53f1..cb769754daf0 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsNodePoolsResponse.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsNodePoolsResponse.java @@ -74,7 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`.
+   * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+   * resources in the specified `AwsCluster`.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; @@ -87,7 +88,8 @@ public java.util.List getAwsNodeP * * *
-   * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`.
+   * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+   * resources in the specified `AwsCluster`.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; @@ -101,7 +103,8 @@ public java.util.List getAwsNodeP * * *
-   * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`.
+   * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+   * resources in the specified `AwsCluster`.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; @@ -114,7 +117,8 @@ public int getAwsNodePoolsCount() { * * *
-   * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`.
+   * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+   * resources in the specified `AwsCluster`.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; @@ -127,7 +131,8 @@ public com.google.cloud.gkemulticloud.v1.AwsNodePool getAwsNodePools(int index) * * *
-   * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`.
+   * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+   * resources in the specified `AwsCluster`.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; @@ -611,7 +616,8 @@ private void ensureAwsNodePoolsIsMutable() { * * *
-     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`.
+     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resources in the specified `AwsCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; @@ -627,7 +633,8 @@ public java.util.List getAwsNodeP * * *
-     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`.
+     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resources in the specified `AwsCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; @@ -643,7 +650,8 @@ public int getAwsNodePoolsCount() { * * *
-     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`.
+     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resources in the specified `AwsCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; @@ -659,7 +667,8 @@ public com.google.cloud.gkemulticloud.v1.AwsNodePool getAwsNodePools(int index) * * *
-     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`.
+     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resources in the specified `AwsCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; @@ -681,7 +690,8 @@ public Builder setAwsNodePools(int index, com.google.cloud.gkemulticloud.v1.AwsN * * *
-     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`.
+     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resources in the specified `AwsCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; @@ -701,7 +711,8 @@ public Builder setAwsNodePools( * * *
-     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`.
+     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resources in the specified `AwsCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; @@ -723,7 +734,8 @@ public Builder addAwsNodePools(com.google.cloud.gkemulticloud.v1.AwsNodePool val * * *
-     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`.
+     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resources in the specified `AwsCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; @@ -745,7 +757,8 @@ public Builder addAwsNodePools(int index, com.google.cloud.gkemulticloud.v1.AwsN * * *
-     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`.
+     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resources in the specified `AwsCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; @@ -765,7 +778,8 @@ public Builder addAwsNodePools( * * *
-     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`.
+     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resources in the specified `AwsCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; @@ -785,7 +799,8 @@ public Builder addAwsNodePools( * * *
-     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`.
+     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resources in the specified `AwsCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; @@ -805,7 +820,8 @@ public Builder addAllAwsNodePools( * * *
-     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`.
+     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resources in the specified `AwsCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; @@ -824,7 +840,8 @@ public Builder clearAwsNodePools() { * * *
-     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`.
+     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resources in the specified `AwsCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; @@ -843,7 +860,8 @@ public Builder removeAwsNodePools(int index) { * * *
-     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`.
+     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resources in the specified `AwsCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; @@ -855,7 +873,8 @@ public com.google.cloud.gkemulticloud.v1.AwsNodePool.Builder getAwsNodePoolsBuil * * *
-     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`.
+     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resources in the specified `AwsCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; @@ -872,7 +891,8 @@ public com.google.cloud.gkemulticloud.v1.AwsNodePoolOrBuilder getAwsNodePoolsOrB * * *
-     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`.
+     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resources in the specified `AwsCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; @@ -889,7 +909,8 @@ public com.google.cloud.gkemulticloud.v1.AwsNodePoolOrBuilder getAwsNodePoolsOrB * * *
-     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`.
+     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resources in the specified `AwsCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; @@ -902,7 +923,8 @@ public com.google.cloud.gkemulticloud.v1.AwsNodePool.Builder addAwsNodePoolsBuil * * *
-     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`.
+     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resources in the specified `AwsCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; @@ -915,7 +937,8 @@ public com.google.cloud.gkemulticloud.v1.AwsNodePool.Builder addAwsNodePoolsBuil * * *
-     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`.
+     * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resources in the specified `AwsCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsNodePoolsResponseOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsNodePoolsResponseOrBuilder.java index b6767c3ae06d..081a4416ec0f 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsNodePoolsResponseOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAwsNodePoolsResponseOrBuilder.java @@ -27,7 +27,8 @@ public interface ListAwsNodePoolsResponseOrBuilder * * *
-   * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`.
+   * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+   * resources in the specified `AwsCluster`.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; @@ -37,7 +38,8 @@ public interface ListAwsNodePoolsResponseOrBuilder * * *
-   * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`.
+   * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+   * resources in the specified `AwsCluster`.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; @@ -47,7 +49,8 @@ public interface ListAwsNodePoolsResponseOrBuilder * * *
-   * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`.
+   * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+   * resources in the specified `AwsCluster`.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; @@ -57,7 +60,8 @@ public interface ListAwsNodePoolsResponseOrBuilder * * *
-   * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`.
+   * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+   * resources in the specified `AwsCluster`.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; @@ -68,7 +72,8 @@ public interface ListAwsNodePoolsResponseOrBuilder * * *
-   * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`.
+   * A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+   * resources in the specified `AwsCluster`.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AwsNodePool aws_node_pools = 1; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClientsRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClientsRequest.java index 14b9a5d62083..3a783386daff 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClientsRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClientsRequest.java @@ -139,8 +139,8 @@ public com.google.protobuf.ByteString getParentBytes() { * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] + * to determine if there are more instances left to be queried. *
* * int32 page_size = 2; @@ -159,7 +159,8 @@ public int getPageSize() { * *
    * The `nextPageToken` value returned from a previous
-   * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] request, if any.
+   * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients]
+   * request, if any.
    * 
* * string page_token = 3; @@ -183,7 +184,8 @@ public java.lang.String getPageToken() { * *
    * The `nextPageToken` value returned from a previous
-   * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] request, if any.
+   * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients]
+   * request, if any.
    * 
* * string page_token = 3; @@ -722,8 +724,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] + * to determine if there are more instances left to be queried. *
* * int32 page_size = 2; @@ -742,8 +744,8 @@ public int getPageSize() { * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] + * to determine if there are more instances left to be queried. *
* * int32 page_size = 2; @@ -765,8 +767,8 @@ public Builder setPageSize(int value) { * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] + * to determine if there are more instances left to be queried. *
* * int32 page_size = 2; @@ -786,7 +788,8 @@ public Builder clearPageSize() { * *
      * The `nextPageToken` value returned from a previous
-     * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] request, if any.
+     * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients]
+     * request, if any.
      * 
* * string page_token = 3; @@ -809,7 +812,8 @@ public java.lang.String getPageToken() { * *
      * The `nextPageToken` value returned from a previous
-     * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] request, if any.
+     * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients]
+     * request, if any.
      * 
* * string page_token = 3; @@ -832,7 +836,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * *
      * The `nextPageToken` value returned from a previous
-     * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] request, if any.
+     * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients]
+     * request, if any.
      * 
* * string page_token = 3; @@ -854,7 +859,8 @@ public Builder setPageToken(java.lang.String value) { * *
      * The `nextPageToken` value returned from a previous
-     * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] request, if any.
+     * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients]
+     * request, if any.
      * 
* * string page_token = 3; @@ -872,7 +878,8 @@ public Builder clearPageToken() { * *
      * The `nextPageToken` value returned from a previous
-     * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] request, if any.
+     * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients]
+     * request, if any.
      * 
* * string page_token = 3; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClientsRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClientsRequestOrBuilder.java index 712a49e1cc51..21a491a27410 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClientsRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClientsRequestOrBuilder.java @@ -68,8 +68,8 @@ public interface ListAzureClientsRequestOrBuilder * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] + * to determine if there are more instances left to be queried. *
* * int32 page_size = 2; @@ -83,7 +83,8 @@ public interface ListAzureClientsRequestOrBuilder * *
    * The `nextPageToken` value returned from a previous
-   * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] request, if any.
+   * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients]
+   * request, if any.
    * 
* * string page_token = 3; @@ -96,7 +97,8 @@ public interface ListAzureClientsRequestOrBuilder * *
    * The `nextPageToken` value returned from a previous
-   * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] request, if any.
+   * [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients]
+   * request, if any.
    * 
* * string page_token = 3; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClientsResponse.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClientsResponse.java index 3c497f72557a..fb646c372394 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClientsResponse.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClientsResponse.java @@ -74,8 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud
-   * project and region region.
+   * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+   * resources in the specified Google Cloud project and region region.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; @@ -88,8 +88,8 @@ public java.util.List getAzureCli * * *
-   * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud
-   * project and region region.
+   * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+   * resources in the specified Google Cloud project and region region.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; @@ -103,8 +103,8 @@ public java.util.List getAzureCli * * *
-   * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud
-   * project and region region.
+   * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+   * resources in the specified Google Cloud project and region region.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; @@ -117,8 +117,8 @@ public int getAzureClientsCount() { * * *
-   * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud
-   * project and region region.
+   * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+   * resources in the specified Google Cloud project and region region.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; @@ -131,8 +131,8 @@ public com.google.cloud.gkemulticloud.v1.AzureClient getAzureClients(int index) * * *
-   * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud
-   * project and region region.
+   * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+   * resources in the specified Google Cloud project and region region.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; @@ -616,8 +616,8 @@ private void ensureAzureClientsIsMutable() { * * *
-     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud
-     * project and region region.
+     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+     * resources in the specified Google Cloud project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; @@ -633,8 +633,8 @@ public java.util.List getAzureCli * * *
-     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud
-     * project and region region.
+     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+     * resources in the specified Google Cloud project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; @@ -650,8 +650,8 @@ public int getAzureClientsCount() { * * *
-     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud
-     * project and region region.
+     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+     * resources in the specified Google Cloud project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; @@ -667,8 +667,8 @@ public com.google.cloud.gkemulticloud.v1.AzureClient getAzureClients(int index) * * *
-     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud
-     * project and region region.
+     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+     * resources in the specified Google Cloud project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; @@ -690,8 +690,8 @@ public Builder setAzureClients(int index, com.google.cloud.gkemulticloud.v1.Azur * * *
-     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud
-     * project and region region.
+     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+     * resources in the specified Google Cloud project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; @@ -711,8 +711,8 @@ public Builder setAzureClients( * * *
-     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud
-     * project and region region.
+     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+     * resources in the specified Google Cloud project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; @@ -734,8 +734,8 @@ public Builder addAzureClients(com.google.cloud.gkemulticloud.v1.AzureClient val * * *
-     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud
-     * project and region region.
+     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+     * resources in the specified Google Cloud project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; @@ -757,8 +757,8 @@ public Builder addAzureClients(int index, com.google.cloud.gkemulticloud.v1.Azur * * *
-     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud
-     * project and region region.
+     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+     * resources in the specified Google Cloud project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; @@ -778,8 +778,8 @@ public Builder addAzureClients( * * *
-     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud
-     * project and region region.
+     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+     * resources in the specified Google Cloud project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; @@ -799,8 +799,8 @@ public Builder addAzureClients( * * *
-     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud
-     * project and region region.
+     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+     * resources in the specified Google Cloud project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; @@ -820,8 +820,8 @@ public Builder addAllAzureClients( * * *
-     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud
-     * project and region region.
+     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+     * resources in the specified Google Cloud project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; @@ -840,8 +840,8 @@ public Builder clearAzureClients() { * * *
-     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud
-     * project and region region.
+     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+     * resources in the specified Google Cloud project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; @@ -860,8 +860,8 @@ public Builder removeAzureClients(int index) { * * *
-     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud
-     * project and region region.
+     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+     * resources in the specified Google Cloud project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; @@ -873,8 +873,8 @@ public com.google.cloud.gkemulticloud.v1.AzureClient.Builder getAzureClientsBuil * * *
-     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud
-     * project and region region.
+     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+     * resources in the specified Google Cloud project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; @@ -891,8 +891,8 @@ public com.google.cloud.gkemulticloud.v1.AzureClientOrBuilder getAzureClientsOrB * * *
-     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud
-     * project and region region.
+     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+     * resources in the specified Google Cloud project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; @@ -909,8 +909,8 @@ public com.google.cloud.gkemulticloud.v1.AzureClientOrBuilder getAzureClientsOrB * * *
-     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud
-     * project and region region.
+     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+     * resources in the specified Google Cloud project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; @@ -923,8 +923,8 @@ public com.google.cloud.gkemulticloud.v1.AzureClient.Builder addAzureClientsBuil * * *
-     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud
-     * project and region region.
+     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+     * resources in the specified Google Cloud project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; @@ -937,8 +937,8 @@ public com.google.cloud.gkemulticloud.v1.AzureClient.Builder addAzureClientsBuil * * *
-     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud
-     * project and region region.
+     * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+     * resources in the specified Google Cloud project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClientsResponseOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClientsResponseOrBuilder.java index c1ae864f4986..dc0895e474b2 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClientsResponseOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClientsResponseOrBuilder.java @@ -27,8 +27,8 @@ public interface ListAzureClientsResponseOrBuilder * * *
-   * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud
-   * project and region region.
+   * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+   * resources in the specified Google Cloud project and region region.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; @@ -38,8 +38,8 @@ public interface ListAzureClientsResponseOrBuilder * * *
-   * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud
-   * project and region region.
+   * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+   * resources in the specified Google Cloud project and region region.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; @@ -49,8 +49,8 @@ public interface ListAzureClientsResponseOrBuilder * * *
-   * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud
-   * project and region region.
+   * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+   * resources in the specified Google Cloud project and region region.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; @@ -60,8 +60,8 @@ public interface ListAzureClientsResponseOrBuilder * * *
-   * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud
-   * project and region region.
+   * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+   * resources in the specified Google Cloud project and region region.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; @@ -72,8 +72,8 @@ public interface ListAzureClientsResponseOrBuilder * * *
-   * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud
-   * project and region region.
+   * A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]
+   * resources in the specified Google Cloud project and region region.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AzureClient azure_clients = 1; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClustersRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClustersRequest.java index 69a45291b171..00359bb12ded 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClustersRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClustersRequest.java @@ -139,8 +139,8 @@ public com.google.protobuf.ByteString getParentBytes() { * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. *
* * int32 page_size = 2; @@ -159,7 +159,8 @@ public int getPageSize() { * *
    * The `nextPageToken` value returned from a previous
-   * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] request, if any.
+   * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters]
+   * request, if any.
    * 
* * string page_token = 3; @@ -183,7 +184,8 @@ public java.lang.String getPageToken() { * *
    * The `nextPageToken` value returned from a previous
-   * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] request, if any.
+   * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters]
+   * request, if any.
    * 
* * string page_token = 3; @@ -722,8 +724,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. *
* * int32 page_size = 2; @@ -742,8 +744,8 @@ public int getPageSize() { * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. *
* * int32 page_size = 2; @@ -765,8 +767,8 @@ public Builder setPageSize(int value) { * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. *
* * int32 page_size = 2; @@ -786,7 +788,8 @@ public Builder clearPageSize() { * *
      * The `nextPageToken` value returned from a previous
-     * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] request, if any.
+     * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters]
+     * request, if any.
      * 
* * string page_token = 3; @@ -809,7 +812,8 @@ public java.lang.String getPageToken() { * *
      * The `nextPageToken` value returned from a previous
-     * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] request, if any.
+     * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters]
+     * request, if any.
      * 
* * string page_token = 3; @@ -832,7 +836,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * *
      * The `nextPageToken` value returned from a previous
-     * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] request, if any.
+     * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters]
+     * request, if any.
      * 
* * string page_token = 3; @@ -854,7 +859,8 @@ public Builder setPageToken(java.lang.String value) { * *
      * The `nextPageToken` value returned from a previous
-     * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] request, if any.
+     * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters]
+     * request, if any.
      * 
* * string page_token = 3; @@ -872,7 +878,8 @@ public Builder clearPageToken() { * *
      * The `nextPageToken` value returned from a previous
-     * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] request, if any.
+     * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters]
+     * request, if any.
      * 
* * string page_token = 3; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClustersRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClustersRequestOrBuilder.java index e71b0c07deec..4d5cb6a6161d 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClustersRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClustersRequestOrBuilder.java @@ -68,8 +68,8 @@ public interface ListAzureClustersRequestOrBuilder * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] + * to determine if there are more instances left to be queried. *
* * int32 page_size = 2; @@ -83,7 +83,8 @@ public interface ListAzureClustersRequestOrBuilder * *
    * The `nextPageToken` value returned from a previous
-   * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] request, if any.
+   * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters]
+   * request, if any.
    * 
* * string page_token = 3; @@ -96,7 +97,8 @@ public interface ListAzureClustersRequestOrBuilder * *
    * The `nextPageToken` value returned from a previous
-   * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] request, if any.
+   * [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters]
+   * request, if any.
    * 
* * string page_token = 3; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClustersResponse.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClustersResponse.java index d3da198dc646..c466f50282c3 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClustersResponse.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClustersResponse.java @@ -74,8 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP
-   * project and region region.
+   * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+   * resources in the specified GCP project and region region.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; @@ -88,8 +88,8 @@ public java.util.List getAzureCl * * *
-   * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP
-   * project and region region.
+   * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+   * resources in the specified GCP project and region region.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; @@ -103,8 +103,8 @@ public java.util.List getAzureCl * * *
-   * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP
-   * project and region region.
+   * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+   * resources in the specified GCP project and region region.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; @@ -117,8 +117,8 @@ public int getAzureClustersCount() { * * *
-   * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP
-   * project and region region.
+   * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+   * resources in the specified GCP project and region region.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; @@ -131,8 +131,8 @@ public com.google.cloud.gkemulticloud.v1.AzureCluster getAzureClusters(int index * * *
-   * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP
-   * project and region region.
+   * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+   * resources in the specified GCP project and region region.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; @@ -616,8 +616,8 @@ private void ensureAzureClustersIsMutable() { * * *
-     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resources in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; @@ -633,8 +633,8 @@ public java.util.List getAzureCl * * *
-     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resources in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; @@ -650,8 +650,8 @@ public int getAzureClustersCount() { * * *
-     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resources in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; @@ -667,8 +667,8 @@ public com.google.cloud.gkemulticloud.v1.AzureCluster getAzureClusters(int index * * *
-     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resources in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; @@ -691,8 +691,8 @@ public Builder setAzureClusters( * * *
-     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resources in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; @@ -712,8 +712,8 @@ public Builder setAzureClusters( * * *
-     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resources in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; @@ -735,8 +735,8 @@ public Builder addAzureClusters(com.google.cloud.gkemulticloud.v1.AzureCluster v * * *
-     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resources in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; @@ -759,8 +759,8 @@ public Builder addAzureClusters( * * *
-     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resources in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; @@ -780,8 +780,8 @@ public Builder addAzureClusters( * * *
-     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resources in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; @@ -801,8 +801,8 @@ public Builder addAzureClusters( * * *
-     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resources in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; @@ -822,8 +822,8 @@ public Builder addAllAzureClusters( * * *
-     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resources in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; @@ -842,8 +842,8 @@ public Builder clearAzureClusters() { * * *
-     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resources in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; @@ -862,8 +862,8 @@ public Builder removeAzureClusters(int index) { * * *
-     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resources in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; @@ -876,8 +876,8 @@ public com.google.cloud.gkemulticloud.v1.AzureCluster.Builder getAzureClustersBu * * *
-     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resources in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; @@ -894,8 +894,8 @@ public com.google.cloud.gkemulticloud.v1.AzureClusterOrBuilder getAzureClustersO * * *
-     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resources in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; @@ -912,8 +912,8 @@ public com.google.cloud.gkemulticloud.v1.AzureClusterOrBuilder getAzureClustersO * * *
-     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resources in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; @@ -926,8 +926,8 @@ public com.google.cloud.gkemulticloud.v1.AzureCluster.Builder addAzureClustersBu * * *
-     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resources in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; @@ -941,8 +941,8 @@ public com.google.cloud.gkemulticloud.v1.AzureCluster.Builder addAzureClustersBu * * *
-     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP
-     * project and region region.
+     * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resources in the specified GCP project and region region.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClustersResponseOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClustersResponseOrBuilder.java index c98541bf3b10..dc08f9b5b11a 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClustersResponseOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureClustersResponseOrBuilder.java @@ -27,8 +27,8 @@ public interface ListAzureClustersResponseOrBuilder * * *
-   * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP
-   * project and region region.
+   * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+   * resources in the specified GCP project and region region.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; @@ -38,8 +38,8 @@ public interface ListAzureClustersResponseOrBuilder * * *
-   * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP
-   * project and region region.
+   * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+   * resources in the specified GCP project and region region.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; @@ -49,8 +49,8 @@ public interface ListAzureClustersResponseOrBuilder * * *
-   * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP
-   * project and region region.
+   * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+   * resources in the specified GCP project and region region.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; @@ -60,8 +60,8 @@ public interface ListAzureClustersResponseOrBuilder * * *
-   * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP
-   * project and region region.
+   * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+   * resources in the specified GCP project and region region.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; @@ -72,8 +72,8 @@ public interface ListAzureClustersResponseOrBuilder * * *
-   * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP
-   * project and region region.
+   * A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+   * resources in the specified GCP project and region region.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AzureCluster azure_clusters = 1; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureNodePoolsRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureNodePoolsRequest.java index 89e70a6643a5..1adacdb36d73 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureNodePoolsRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureNodePoolsRequest.java @@ -141,8 +141,8 @@ public com.google.protobuf.ByteString getParentBytes() { * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. *
* * int32 page_size = 2; @@ -161,7 +161,8 @@ public int getPageSize() { * *
    * The `nextPageToken` value returned from a previous
-   * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] request, if any.
+   * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools]
+   * request, if any.
    * 
* * string page_token = 3; @@ -185,7 +186,8 @@ public java.lang.String getPageToken() { * *
    * The `nextPageToken` value returned from a previous
-   * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] request, if any.
+   * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools]
+   * request, if any.
    * 
* * string page_token = 3; @@ -729,8 +731,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. *
* * int32 page_size = 2; @@ -749,8 +751,8 @@ public int getPageSize() { * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. *
* * int32 page_size = 2; @@ -772,8 +774,8 @@ public Builder setPageSize(int value) { * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. *
* * int32 page_size = 2; @@ -793,7 +795,8 @@ public Builder clearPageSize() { * *
      * The `nextPageToken` value returned from a previous
-     * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] request, if any.
+     * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools]
+     * request, if any.
      * 
* * string page_token = 3; @@ -816,7 +819,8 @@ public java.lang.String getPageToken() { * *
      * The `nextPageToken` value returned from a previous
-     * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] request, if any.
+     * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools]
+     * request, if any.
      * 
* * string page_token = 3; @@ -839,7 +843,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * *
      * The `nextPageToken` value returned from a previous
-     * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] request, if any.
+     * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools]
+     * request, if any.
      * 
* * string page_token = 3; @@ -861,7 +866,8 @@ public Builder setPageToken(java.lang.String value) { * *
      * The `nextPageToken` value returned from a previous
-     * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] request, if any.
+     * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools]
+     * request, if any.
      * 
* * string page_token = 3; @@ -879,7 +885,8 @@ public Builder clearPageToken() { * *
      * The `nextPageToken` value returned from a previous
-     * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] request, if any.
+     * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools]
+     * request, if any.
      * 
* * string page_token = 3; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureNodePoolsRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureNodePoolsRequestOrBuilder.java index 9669b5493d04..b5fa1c5ac922 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureNodePoolsRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureNodePoolsRequestOrBuilder.java @@ -70,8 +70,8 @@ public interface ListAzureNodePoolsRequestOrBuilder * If not specified, a default value of 50 will be used by the service. * Regardless of the pageSize value, the response can include a partial list * and a caller should only rely on response's - * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] to determine if - * there are more instances left to be queried. + * [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] + * to determine if there are more instances left to be queried. *
* * int32 page_size = 2; @@ -85,7 +85,8 @@ public interface ListAzureNodePoolsRequestOrBuilder * *
    * The `nextPageToken` value returned from a previous
-   * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] request, if any.
+   * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools]
+   * request, if any.
    * 
* * string page_token = 3; @@ -98,7 +99,8 @@ public interface ListAzureNodePoolsRequestOrBuilder * *
    * The `nextPageToken` value returned from a previous
-   * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] request, if any.
+   * [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools]
+   * request, if any.
    * 
* * string page_token = 3; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureNodePoolsResponse.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureNodePoolsResponse.java index 69e32d957b99..5630b2f0f008 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureNodePoolsResponse.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureNodePoolsResponse.java @@ -74,7 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`.
+   * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+   * resources in the specified `AzureCluster`.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; @@ -87,7 +88,8 @@ public java.util.List getAzureN * * *
-   * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`.
+   * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+   * resources in the specified `AzureCluster`.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; @@ -101,7 +103,8 @@ public java.util.List getAzureN * * *
-   * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`.
+   * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+   * resources in the specified `AzureCluster`.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; @@ -114,7 +117,8 @@ public int getAzureNodePoolsCount() { * * *
-   * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`.
+   * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+   * resources in the specified `AzureCluster`.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; @@ -127,7 +131,8 @@ public com.google.cloud.gkemulticloud.v1.AzureNodePool getAzureNodePools(int ind * * *
-   * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`.
+   * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+   * resources in the specified `AzureCluster`.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; @@ -615,7 +620,8 @@ private void ensureAzureNodePoolsIsMutable() { * * *
-     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`.
+     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resources in the specified `AzureCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; @@ -631,7 +637,8 @@ public java.util.List getAzureN * * *
-     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`.
+     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resources in the specified `AzureCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; @@ -647,7 +654,8 @@ public int getAzureNodePoolsCount() { * * *
-     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`.
+     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resources in the specified `AzureCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; @@ -663,7 +671,8 @@ public com.google.cloud.gkemulticloud.v1.AzureNodePool getAzureNodePools(int ind * * *
-     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`.
+     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resources in the specified `AzureCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; @@ -686,7 +695,8 @@ public Builder setAzureNodePools( * * *
-     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`.
+     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resources in the specified `AzureCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; @@ -706,7 +716,8 @@ public Builder setAzureNodePools( * * *
-     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`.
+     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resources in the specified `AzureCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; @@ -728,7 +739,8 @@ public Builder addAzureNodePools(com.google.cloud.gkemulticloud.v1.AzureNodePool * * *
-     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`.
+     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resources in the specified `AzureCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; @@ -751,7 +763,8 @@ public Builder addAzureNodePools( * * *
-     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`.
+     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resources in the specified `AzureCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; @@ -771,7 +784,8 @@ public Builder addAzureNodePools( * * *
-     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`.
+     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resources in the specified `AzureCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; @@ -791,7 +805,8 @@ public Builder addAzureNodePools( * * *
-     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`.
+     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resources in the specified `AzureCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; @@ -811,7 +826,8 @@ public Builder addAllAzureNodePools( * * *
-     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`.
+     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resources in the specified `AzureCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; @@ -830,7 +846,8 @@ public Builder clearAzureNodePools() { * * *
-     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`.
+     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resources in the specified `AzureCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; @@ -849,7 +866,8 @@ public Builder removeAzureNodePools(int index) { * * *
-     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`.
+     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resources in the specified `AzureCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; @@ -862,7 +880,8 @@ public com.google.cloud.gkemulticloud.v1.AzureNodePool.Builder getAzureNodePools * * *
-     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`.
+     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resources in the specified `AzureCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; @@ -879,7 +898,8 @@ public com.google.cloud.gkemulticloud.v1.AzureNodePoolOrBuilder getAzureNodePool * * *
-     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`.
+     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resources in the specified `AzureCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; @@ -896,7 +916,8 @@ public com.google.cloud.gkemulticloud.v1.AzureNodePoolOrBuilder getAzureNodePool * * *
-     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`.
+     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resources in the specified `AzureCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; @@ -909,7 +930,8 @@ public com.google.cloud.gkemulticloud.v1.AzureNodePool.Builder addAzureNodePools * * *
-     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`.
+     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resources in the specified `AzureCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; @@ -923,7 +945,8 @@ public com.google.cloud.gkemulticloud.v1.AzureNodePool.Builder addAzureNodePools * * *
-     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`.
+     * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resources in the specified `AzureCluster`.
      * 
* * repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureNodePoolsResponseOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureNodePoolsResponseOrBuilder.java index d55a66fa5e96..38ac374f7a62 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureNodePoolsResponseOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ListAzureNodePoolsResponseOrBuilder.java @@ -27,7 +27,8 @@ public interface ListAzureNodePoolsResponseOrBuilder * * *
-   * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`.
+   * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+   * resources in the specified `AzureCluster`.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; @@ -37,7 +38,8 @@ public interface ListAzureNodePoolsResponseOrBuilder * * *
-   * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`.
+   * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+   * resources in the specified `AzureCluster`.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; @@ -47,7 +49,8 @@ public interface ListAzureNodePoolsResponseOrBuilder * * *
-   * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`.
+   * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+   * resources in the specified `AzureCluster`.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; @@ -57,7 +60,8 @@ public interface ListAzureNodePoolsResponseOrBuilder * * *
-   * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`.
+   * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+   * resources in the specified `AzureCluster`.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; @@ -68,7 +72,8 @@ public interface ListAzureNodePoolsResponseOrBuilder * * *
-   * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`.
+   * A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+   * resources in the specified `AzureCluster`.
    * 
* * repeated .google.cloud.gkemulticloud.v1.AzureNodePool azure_node_pools = 1; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ManagedPrometheusConfig.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ManagedPrometheusConfig.java new file mode 100644 index 000000000000..c38efa3ae222 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ManagedPrometheusConfig.java @@ -0,0 +1,530 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/common_resources.proto + +package com.google.cloud.gkemulticloud.v1; + +/** + * + * + *
+ * ManagedPrometheusConfig defines the configuration for
+ * Google Cloud Managed Service for Prometheus.
+ * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.ManagedPrometheusConfig} + */ +public final class ManagedPrometheusConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.ManagedPrometheusConfig) + ManagedPrometheusConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ManagedPrometheusConfig.newBuilder() to construct. + private ManagedPrometheusConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ManagedPrometheusConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ManagedPrometheusConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.CommonResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_ManagedPrometheusConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.CommonResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_ManagedPrometheusConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig.class, + com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Enable Managed Collection.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig)) { + return super.equals(obj); + } + com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig other = + (com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * ManagedPrometheusConfig defines the configuration for
+   * Google Cloud Managed Service for Prometheus.
+   * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.ManagedPrometheusConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkemulticloud.v1.ManagedPrometheusConfig) + com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.CommonResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_ManagedPrometheusConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.CommonResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_ManagedPrometheusConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig.class, + com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig.Builder.class); + } + + // Construct using com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkemulticloud.v1.CommonResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_ManagedPrometheusConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig getDefaultInstanceForType() { + return com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig build() { + com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig buildPartial() { + com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig result = + new com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig(this); + result.enabled_ = enabled_; + 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.gkemulticloud.v1.ManagedPrometheusConfig) { + return mergeFrom((com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig other) { + if (other == com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enabled_ = input.readBool(); + + 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 boolean enabled_; + /** + * + * + *
+     * Enable Managed Collection.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Enable Managed Collection.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Enable Managed Collection.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkemulticloud.v1.ManagedPrometheusConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkemulticloud.v1.ManagedPrometheusConfig) + private static final com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig(); + } + + public static com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ManagedPrometheusConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ManagedPrometheusConfigOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ManagedPrometheusConfigOrBuilder.java new file mode 100644 index 000000000000..9485e87762ce --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ManagedPrometheusConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/common_resources.proto + +package com.google.cloud.gkemulticloud.v1; + +public interface ManagedPrometheusConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.ManagedPrometheusConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Enable Managed Collection.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/MonitoringConfig.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/MonitoringConfig.java new file mode 100644 index 000000000000..1c5ec206a653 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/MonitoringConfig.java @@ -0,0 +1,724 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/common_resources.proto + +package com.google.cloud.gkemulticloud.v1; + +/** + * + * + *
+ * Parameters that describe the Monitoring configuration in a cluster.
+ * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.MonitoringConfig} + */ +public final class MonitoringConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.MonitoringConfig) + MonitoringConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use MonitoringConfig.newBuilder() to construct. + private MonitoringConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MonitoringConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MonitoringConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.CommonResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_MonitoringConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.CommonResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_MonitoringConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.MonitoringConfig.class, + com.google.cloud.gkemulticloud.v1.MonitoringConfig.Builder.class); + } + + public static final int MANAGED_PROMETHEUS_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managedPrometheusConfig_; + /** + * + * + *
+   * Enable Google Cloud Managed Service for Prometheus in the cluster.
+   * 
+ * + * .google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + * + * + * @return Whether the managedPrometheusConfig field is set. + */ + @java.lang.Override + public boolean hasManagedPrometheusConfig() { + return managedPrometheusConfig_ != null; + } + /** + * + * + *
+   * Enable Google Cloud Managed Service for Prometheus in the cluster.
+   * 
+ * + * .google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + * + * + * @return The managedPrometheusConfig. + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig getManagedPrometheusConfig() { + return managedPrometheusConfig_ == null + ? com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig.getDefaultInstance() + : managedPrometheusConfig_; + } + /** + * + * + *
+   * Enable Google Cloud Managed Service for Prometheus in the cluster.
+   * 
+ * + * .google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfigOrBuilder + getManagedPrometheusConfigOrBuilder() { + return getManagedPrometheusConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (managedPrometheusConfig_ != null) { + output.writeMessage(2, getManagedPrometheusConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (managedPrometheusConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getManagedPrometheusConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkemulticloud.v1.MonitoringConfig)) { + return super.equals(obj); + } + com.google.cloud.gkemulticloud.v1.MonitoringConfig other = + (com.google.cloud.gkemulticloud.v1.MonitoringConfig) obj; + + if (hasManagedPrometheusConfig() != other.hasManagedPrometheusConfig()) return false; + if (hasManagedPrometheusConfig()) { + if (!getManagedPrometheusConfig().equals(other.getManagedPrometheusConfig())) return false; + } + if (!getUnknownFields().equals(other.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 (hasManagedPrometheusConfig()) { + hash = (37 * hash) + MANAGED_PROMETHEUS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getManagedPrometheusConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkemulticloud.v1.MonitoringConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.MonitoringConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.MonitoringConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.MonitoringConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.MonitoringConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.MonitoringConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.MonitoringConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.MonitoringConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.MonitoringConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.MonitoringConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.MonitoringConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.MonitoringConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkemulticloud.v1.MonitoringConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Parameters that describe the Monitoring configuration in a cluster.
+   * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.MonitoringConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkemulticloud.v1.MonitoringConfig) + com.google.cloud.gkemulticloud.v1.MonitoringConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.CommonResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_MonitoringConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.CommonResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_MonitoringConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.MonitoringConfig.class, + com.google.cloud.gkemulticloud.v1.MonitoringConfig.Builder.class); + } + + // Construct using com.google.cloud.gkemulticloud.v1.MonitoringConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (managedPrometheusConfigBuilder_ == null) { + managedPrometheusConfig_ = null; + } else { + managedPrometheusConfig_ = null; + managedPrometheusConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkemulticloud.v1.CommonResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_MonitoringConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.MonitoringConfig getDefaultInstanceForType() { + return com.google.cloud.gkemulticloud.v1.MonitoringConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.MonitoringConfig build() { + com.google.cloud.gkemulticloud.v1.MonitoringConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.MonitoringConfig buildPartial() { + com.google.cloud.gkemulticloud.v1.MonitoringConfig result = + new com.google.cloud.gkemulticloud.v1.MonitoringConfig(this); + if (managedPrometheusConfigBuilder_ == null) { + result.managedPrometheusConfig_ = managedPrometheusConfig_; + } else { + result.managedPrometheusConfig_ = managedPrometheusConfigBuilder_.build(); + } + 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.gkemulticloud.v1.MonitoringConfig) { + return mergeFrom((com.google.cloud.gkemulticloud.v1.MonitoringConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.MonitoringConfig other) { + if (other == com.google.cloud.gkemulticloud.v1.MonitoringConfig.getDefaultInstance()) + return this; + if (other.hasManagedPrometheusConfig()) { + mergeManagedPrometheusConfig(other.getManagedPrometheusConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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( + getManagedPrometheusConfigFieldBuilder().getBuilder(), extensionRegistry); + + 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 com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managedPrometheusConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig, + com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig.Builder, + com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfigOrBuilder> + managedPrometheusConfigBuilder_; + /** + * + * + *
+     * Enable Google Cloud Managed Service for Prometheus in the cluster.
+     * 
+ * + * .google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + * + * + * @return Whether the managedPrometheusConfig field is set. + */ + public boolean hasManagedPrometheusConfig() { + return managedPrometheusConfigBuilder_ != null || managedPrometheusConfig_ != null; + } + /** + * + * + *
+     * Enable Google Cloud Managed Service for Prometheus in the cluster.
+     * 
+ * + * .google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + * + * + * @return The managedPrometheusConfig. + */ + public com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig getManagedPrometheusConfig() { + if (managedPrometheusConfigBuilder_ == null) { + return managedPrometheusConfig_ == null + ? com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig.getDefaultInstance() + : managedPrometheusConfig_; + } else { + return managedPrometheusConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Enable Google Cloud Managed Service for Prometheus in the cluster.
+     * 
+ * + * .google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + * + */ + public Builder setManagedPrometheusConfig( + com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig value) { + if (managedPrometheusConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + managedPrometheusConfig_ = value; + onChanged(); + } else { + managedPrometheusConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Enable Google Cloud Managed Service for Prometheus in the cluster.
+     * 
+ * + * .google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + * + */ + public Builder setManagedPrometheusConfig( + com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig.Builder builderForValue) { + if (managedPrometheusConfigBuilder_ == null) { + managedPrometheusConfig_ = builderForValue.build(); + onChanged(); + } else { + managedPrometheusConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Enable Google Cloud Managed Service for Prometheus in the cluster.
+     * 
+ * + * .google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + * + */ + public Builder mergeManagedPrometheusConfig( + com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig value) { + if (managedPrometheusConfigBuilder_ == null) { + if (managedPrometheusConfig_ != null) { + managedPrometheusConfig_ = + com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig.newBuilder( + managedPrometheusConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + managedPrometheusConfig_ = value; + } + onChanged(); + } else { + managedPrometheusConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Enable Google Cloud Managed Service for Prometheus in the cluster.
+     * 
+ * + * .google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + * + */ + public Builder clearManagedPrometheusConfig() { + if (managedPrometheusConfigBuilder_ == null) { + managedPrometheusConfig_ = null; + onChanged(); + } else { + managedPrometheusConfig_ = null; + managedPrometheusConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Enable Google Cloud Managed Service for Prometheus in the cluster.
+     * 
+ * + * .google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + * + */ + public com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig.Builder + getManagedPrometheusConfigBuilder() { + + onChanged(); + return getManagedPrometheusConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Enable Google Cloud Managed Service for Prometheus in the cluster.
+     * 
+ * + * .google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + * + */ + public com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfigOrBuilder + getManagedPrometheusConfigOrBuilder() { + if (managedPrometheusConfigBuilder_ != null) { + return managedPrometheusConfigBuilder_.getMessageOrBuilder(); + } else { + return managedPrometheusConfig_ == null + ? com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig.getDefaultInstance() + : managedPrometheusConfig_; + } + } + /** + * + * + *
+     * Enable Google Cloud Managed Service for Prometheus in the cluster.
+     * 
+ * + * .google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig, + com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig.Builder, + com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfigOrBuilder> + getManagedPrometheusConfigFieldBuilder() { + if (managedPrometheusConfigBuilder_ == null) { + managedPrometheusConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig, + com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig.Builder, + com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfigOrBuilder>( + getManagedPrometheusConfig(), getParentForChildren(), isClean()); + managedPrometheusConfig_ = null; + } + return managedPrometheusConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkemulticloud.v1.MonitoringConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkemulticloud.v1.MonitoringConfig) + private static final com.google.cloud.gkemulticloud.v1.MonitoringConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkemulticloud.v1.MonitoringConfig(); + } + + public static com.google.cloud.gkemulticloud.v1.MonitoringConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MonitoringConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.MonitoringConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/MonitoringConfigOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/MonitoringConfigOrBuilder.java new file mode 100644 index 000000000000..961958700d3a --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/MonitoringConfigOrBuilder.java @@ -0,0 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/common_resources.proto + +package com.google.cloud.gkemulticloud.v1; + +public interface MonitoringConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.MonitoringConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Enable Google Cloud Managed Service for Prometheus in the cluster.
+   * 
+ * + * .google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + * + * + * @return Whether the managedPrometheusConfig field is set. + */ + boolean hasManagedPrometheusConfig(); + /** + * + * + *
+   * Enable Google Cloud Managed Service for Prometheus in the cluster.
+   * 
+ * + * .google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + * + * + * @return The managedPrometheusConfig. + */ + com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig getManagedPrometheusConfig(); + /** + * + * + *
+   * Enable Google Cloud Managed Service for Prometheus in the cluster.
+   * 
+ * + * .google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + * + */ + com.google.cloud.gkemulticloud.v1.ManagedPrometheusConfigOrBuilder + getManagedPrometheusConfigOrBuilder(); +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/OperationMetadata.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/OperationMetadata.java index 4d07bd081444..2ff83011e9f9 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/OperationMetadata.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/OperationMetadata.java @@ -41,6 +41,7 @@ private OperationMetadata() { target_ = ""; statusDetail_ = ""; errorDetail_ = ""; + verb_ = ""; } @java.lang.Override @@ -271,7 +272,8 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { * * *
-   * Output only. Human-readable status of any error that occurred during the operation.
+   * Output only. Human-readable status of any error that occurred during the
+   * operation.
    * 
* * string error_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -294,7 +296,8 @@ public java.lang.String getErrorDetail() { * * *
-   * Output only. Human-readable status of any error that occurred during the operation.
+   * Output only. Human-readable status of any error that occurred during the
+   * operation.
    * 
* * string error_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -314,6 +317,79 @@ public com.google.protobuf.ByteString getErrorDetailBytes() { } } + public static final int VERB_FIELD_NUMBER = 7; + private volatile java.lang.Object verb_; + /** + * + * + *
+   * Output only. The verb associated with the API method which triggered this
+   * operation. Possible values are "create", "delete", "update" and "import".
+   * 
+ * + * string verb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The verb. + */ + @java.lang.Override + public java.lang.String getVerb() { + java.lang.Object ref = verb_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verb_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The verb associated with the API method which triggered this
+   * operation. Possible values are "create", "delete", "update" and "import".
+   * 
+ * + * string verb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for verb. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVerbBytes() { + java.lang.Object ref = verb_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + verb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; + private boolean requestedCancellation_; + /** + * + * + *
+   * Output only. Identifies whether it has been requested cancellation
+   * for 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`.
+   * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + @java.lang.Override + public boolean getRequestedCancellation() { + return requestedCancellation_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -343,6 +419,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorDetail_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, errorDetail_); } + if (requestedCancellation_ != false) { + output.writeBool(6, requestedCancellation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, verb_); + } getUnknownFields().writeTo(output); } @@ -367,6 +449,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorDetail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, errorDetail_); } + if (requestedCancellation_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, verb_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -394,6 +482,8 @@ public boolean equals(final java.lang.Object obj) { if (!getTarget().equals(other.getTarget())) return false; if (!getStatusDetail().equals(other.getStatusDetail())) return false; if (!getErrorDetail().equals(other.getErrorDetail())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -419,6 +509,10 @@ public int hashCode() { hash = (53 * hash) + getStatusDetail().hashCode(); hash = (37 * hash) + ERROR_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getErrorDetail().hashCode(); + hash = (37 * hash) + VERB_FIELD_NUMBER; + hash = (53 * hash) + getVerb().hashCode(); + hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -575,6 +669,10 @@ public Builder clear() { errorDetail_ = ""; + verb_ = ""; + + requestedCancellation_ = false; + return this; } @@ -615,6 +713,8 @@ public com.google.cloud.gkemulticloud.v1.OperationMetadata buildPartial() { result.target_ = target_; result.statusDetail_ = statusDetail_; result.errorDetail_ = errorDetail_; + result.verb_ = verb_; + result.requestedCancellation_ = requestedCancellation_; onBuilt(); return result; } @@ -683,6 +783,13 @@ public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.OperationMetadata oth errorDetail_ = other.errorDetail_; onChanged(); } + if (!other.getVerb().isEmpty()) { + verb_ = other.verb_; + onChanged(); + } + if (other.getRequestedCancellation() != false) { + setRequestedCancellation(other.getRequestedCancellation()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -739,6 +846,18 @@ public Builder mergeFrom( break; } // case 42 + case 48: + { + requestedCancellation_ = input.readBool(); + + break; + } // case 48 + case 58: + { + verb_ = input.readStringRequireUtf8(); + + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1362,7 +1481,8 @@ public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. Human-readable status of any error that occurred during the operation.
+     * Output only. Human-readable status of any error that occurred during the
+     * operation.
      * 
* * string error_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1384,7 +1504,8 @@ public java.lang.String getErrorDetail() { * * *
-     * Output only. Human-readable status of any error that occurred during the operation.
+     * Output only. Human-readable status of any error that occurred during the
+     * operation.
      * 
* * string error_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1406,7 +1527,8 @@ public com.google.protobuf.ByteString getErrorDetailBytes() { * * *
-     * Output only. Human-readable status of any error that occurred during the operation.
+     * Output only. Human-readable status of any error that occurred during the
+     * operation.
      * 
* * string error_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1427,7 +1549,8 @@ public Builder setErrorDetail(java.lang.String value) { * * *
-     * Output only. Human-readable status of any error that occurred during the operation.
+     * Output only. Human-readable status of any error that occurred during the
+     * operation.
      * 
* * string error_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1444,7 +1567,8 @@ public Builder clearErrorDetail() { * * *
-     * Output only. Human-readable status of any error that occurred during the operation.
+     * Output only. Human-readable status of any error that occurred during the
+     * operation.
      * 
* * string error_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1463,6 +1587,181 @@ public Builder setErrorDetailBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object verb_ = ""; + /** + * + * + *
+     * Output only. The verb associated with the API method which triggered this
+     * operation. Possible values are "create", "delete", "update" and "import".
+     * 
+ * + * string verb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The verb. + */ + public java.lang.String getVerb() { + java.lang.Object ref = verb_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verb_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The verb associated with the API method which triggered this
+     * operation. Possible values are "create", "delete", "update" and "import".
+     * 
+ * + * string verb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for verb. + */ + public com.google.protobuf.ByteString getVerbBytes() { + java.lang.Object ref = verb_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + verb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The verb associated with the API method which triggered this
+     * operation. Possible values are "create", "delete", "update" and "import".
+     * 
+ * + * string verb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The verb to set. + * @return This builder for chaining. + */ + public Builder setVerb(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + verb_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The verb associated with the API method which triggered this
+     * operation. Possible values are "create", "delete", "update" and "import".
+     * 
+ * + * string verb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearVerb() { + + verb_ = getDefaultInstance().getVerb(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The verb associated with the API method which triggered this
+     * operation. Possible values are "create", "delete", "update" and "import".
+     * 
+ * + * string verb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for verb to set. + * @return This builder for chaining. + */ + public Builder setVerbBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + verb_ = value; + onChanged(); + return this; + } + + private boolean requestedCancellation_; + /** + * + * + *
+     * Output only. Identifies whether it has been requested cancellation
+     * for 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`.
+     * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + @java.lang.Override + public boolean getRequestedCancellation() { + return requestedCancellation_; + } + /** + * + * + *
+     * Output only. Identifies whether it has been requested cancellation
+     * for 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`.
+     * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The requestedCancellation to set. + * @return This builder for chaining. + */ + public Builder setRequestedCancellation(boolean value) { + + requestedCancellation_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Identifies whether it has been requested cancellation
+     * for 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`.
+     * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRequestedCancellation() { + + requestedCancellation_ = 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-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/OperationMetadataOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/OperationMetadataOrBuilder.java index f631c0fd8d15..a36cc76bd730 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/OperationMetadataOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/OperationMetadataOrBuilder.java @@ -153,7 +153,8 @@ public interface OperationMetadataOrBuilder * * *
-   * Output only. Human-readable status of any error that occurred during the operation.
+   * Output only. Human-readable status of any error that occurred during the
+   * operation.
    * 
* * string error_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -165,7 +166,8 @@ public interface OperationMetadataOrBuilder * * *
-   * Output only. Human-readable status of any error that occurred during the operation.
+   * Output only. Human-readable status of any error that occurred during the
+   * operation.
    * 
* * string error_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -173,4 +175,48 @@ public interface OperationMetadataOrBuilder * @return The bytes for errorDetail. */ com.google.protobuf.ByteString getErrorDetailBytes(); + + /** + * + * + *
+   * Output only. The verb associated with the API method which triggered this
+   * operation. Possible values are "create", "delete", "update" and "import".
+   * 
+ * + * string verb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The verb. + */ + java.lang.String getVerb(); + /** + * + * + *
+   * Output only. The verb associated with the API method which triggered this
+   * operation. Possible values are "create", "delete", "update" and "import".
+   * 
+ * + * string verb = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for verb. + */ + com.google.protobuf.ByteString getVerbBytes(); + + /** + * + * + *
+   * Output only. Identifies whether it has been requested cancellation
+   * for 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`.
+   * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + boolean getRequestedCancellation(); } diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ReplicaPlacement.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ReplicaPlacement.java index 8373655cadf1..10d211bb6fe5 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ReplicaPlacement.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ReplicaPlacement.java @@ -74,9 +74,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. For a given replica, the ARM ID of the subnet where the control plane VM is
-   * deployed. Make sure it's a subnet under the virtual network in the cluster
-   * configuration.
+   * Required. For a given replica, the ARM ID of the subnet where the control
+   * plane VM is deployed. Make sure it's a subnet under the virtual network in
+   * the cluster configuration.
    * 
* * string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -99,9 +99,9 @@ public java.lang.String getSubnetId() { * * *
-   * Required. For a given replica, the ARM ID of the subnet where the control plane VM is
-   * deployed. Make sure it's a subnet under the virtual network in the cluster
-   * configuration.
+   * Required. For a given replica, the ARM ID of the subnet where the control
+   * plane VM is deployed. Make sure it's a subnet under the virtual network in
+   * the cluster configuration.
    * 
* * string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -127,8 +127,8 @@ public com.google.protobuf.ByteString getSubnetIdBytes() { * * *
-   * Required. For a given replica, the Azure availability zone where to provision the
-   * control plane VM and the ETCD disk.
+   * Required. For a given replica, the Azure availability zone where to
+   * provision the control plane VM and the ETCD disk.
    * 
* * string azure_availability_zone = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -151,8 +151,8 @@ public java.lang.String getAzureAvailabilityZone() { * * *
-   * Required. For a given replica, the Azure availability zone where to provision the
-   * control plane VM and the ETCD disk.
+   * Required. For a given replica, the Azure availability zone where to
+   * provision the control plane VM and the ETCD disk.
    * 
* * string azure_availability_zone = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -529,9 +529,9 @@ public Builder mergeFrom( * * *
-     * Required. For a given replica, the ARM ID of the subnet where the control plane VM is
-     * deployed. Make sure it's a subnet under the virtual network in the cluster
-     * configuration.
+     * Required. For a given replica, the ARM ID of the subnet where the control
+     * plane VM is deployed. Make sure it's a subnet under the virtual network in
+     * the cluster configuration.
      * 
* * string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -553,9 +553,9 @@ public java.lang.String getSubnetId() { * * *
-     * Required. For a given replica, the ARM ID of the subnet where the control plane VM is
-     * deployed. Make sure it's a subnet under the virtual network in the cluster
-     * configuration.
+     * Required. For a given replica, the ARM ID of the subnet where the control
+     * plane VM is deployed. Make sure it's a subnet under the virtual network in
+     * the cluster configuration.
      * 
* * string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -577,9 +577,9 @@ public com.google.protobuf.ByteString getSubnetIdBytes() { * * *
-     * Required. For a given replica, the ARM ID of the subnet where the control plane VM is
-     * deployed. Make sure it's a subnet under the virtual network in the cluster
-     * configuration.
+     * Required. For a given replica, the ARM ID of the subnet where the control
+     * plane VM is deployed. Make sure it's a subnet under the virtual network in
+     * the cluster configuration.
      * 
* * string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -600,9 +600,9 @@ public Builder setSubnetId(java.lang.String value) { * * *
-     * Required. For a given replica, the ARM ID of the subnet where the control plane VM is
-     * deployed. Make sure it's a subnet under the virtual network in the cluster
-     * configuration.
+     * Required. For a given replica, the ARM ID of the subnet where the control
+     * plane VM is deployed. Make sure it's a subnet under the virtual network in
+     * the cluster configuration.
      * 
* * string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -619,9 +619,9 @@ public Builder clearSubnetId() { * * *
-     * Required. For a given replica, the ARM ID of the subnet where the control plane VM is
-     * deployed. Make sure it's a subnet under the virtual network in the cluster
-     * configuration.
+     * Required. For a given replica, the ARM ID of the subnet where the control
+     * plane VM is deployed. Make sure it's a subnet under the virtual network in
+     * the cluster configuration.
      * 
* * string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -645,8 +645,8 @@ public Builder setSubnetIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. For a given replica, the Azure availability zone where to provision the
-     * control plane VM and the ETCD disk.
+     * Required. For a given replica, the Azure availability zone where to
+     * provision the control plane VM and the ETCD disk.
      * 
* * string azure_availability_zone = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -668,8 +668,8 @@ public java.lang.String getAzureAvailabilityZone() { * * *
-     * Required. For a given replica, the Azure availability zone where to provision the
-     * control plane VM and the ETCD disk.
+     * Required. For a given replica, the Azure availability zone where to
+     * provision the control plane VM and the ETCD disk.
      * 
* * string azure_availability_zone = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -691,8 +691,8 @@ public com.google.protobuf.ByteString getAzureAvailabilityZoneBytes() { * * *
-     * Required. For a given replica, the Azure availability zone where to provision the
-     * control plane VM and the ETCD disk.
+     * Required. For a given replica, the Azure availability zone where to
+     * provision the control plane VM and the ETCD disk.
      * 
* * string azure_availability_zone = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -713,8 +713,8 @@ public Builder setAzureAvailabilityZone(java.lang.String value) { * * *
-     * Required. For a given replica, the Azure availability zone where to provision the
-     * control plane VM and the ETCD disk.
+     * Required. For a given replica, the Azure availability zone where to
+     * provision the control plane VM and the ETCD disk.
      * 
* * string azure_availability_zone = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -731,8 +731,8 @@ public Builder clearAzureAvailabilityZone() { * * *
-     * Required. For a given replica, the Azure availability zone where to provision the
-     * control plane VM and the ETCD disk.
+     * Required. For a given replica, the Azure availability zone where to
+     * provision the control plane VM and the ETCD disk.
      * 
* * string azure_availability_zone = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ReplicaPlacementOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ReplicaPlacementOrBuilder.java index c0c7ba0c62ca..c4c7879ee22b 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ReplicaPlacementOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/ReplicaPlacementOrBuilder.java @@ -27,9 +27,9 @@ public interface ReplicaPlacementOrBuilder * * *
-   * Required. For a given replica, the ARM ID of the subnet where the control plane VM is
-   * deployed. Make sure it's a subnet under the virtual network in the cluster
-   * configuration.
+   * Required. For a given replica, the ARM ID of the subnet where the control
+   * plane VM is deployed. Make sure it's a subnet under the virtual network in
+   * the cluster configuration.
    * 
* * string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -41,9 +41,9 @@ public interface ReplicaPlacementOrBuilder * * *
-   * Required. For a given replica, the ARM ID of the subnet where the control plane VM is
-   * deployed. Make sure it's a subnet under the virtual network in the cluster
-   * configuration.
+   * Required. For a given replica, the ARM ID of the subnet where the control
+   * plane VM is deployed. Make sure it's a subnet under the virtual network in
+   * the cluster configuration.
    * 
* * string subnet_id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -56,8 +56,8 @@ public interface ReplicaPlacementOrBuilder * * *
-   * Required. For a given replica, the Azure availability zone where to provision the
-   * control plane VM and the ETCD disk.
+   * Required. For a given replica, the Azure availability zone where to
+   * provision the control plane VM and the ETCD disk.
    * 
* * string azure_availability_zone = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -69,8 +69,8 @@ public interface ReplicaPlacementOrBuilder * * *
-   * Required. For a given replica, the Azure availability zone where to provision the
-   * control plane VM and the ETCD disk.
+   * Required. For a given replica, the Azure availability zone where to
+   * provision the control plane VM and the ETCD disk.
    * 
* * string azure_availability_zone = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAttachedClusterRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAttachedClusterRequest.java new file mode 100644 index 000000000000..6f345ba99c1c --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAttachedClusterRequest.java @@ -0,0 +1,1233 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_service.proto + +package com.google.cloud.gkemulticloud.v1; + +/** + * + * + *
+ * Request message for `AttachedClusters.UpdateAttachedCluster` method.
+ * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest} + */ +public final class UpdateAttachedClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest) + UpdateAttachedClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateAttachedClusterRequest.newBuilder() to construct. + private UpdateAttachedClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateAttachedClusterRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateAttachedClusterRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_UpdateAttachedClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_UpdateAttachedClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest.class, + com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest.Builder.class); + } + + public static final int ATTACHED_CLUSTER_FIELD_NUMBER = 1; + private com.google.cloud.gkemulticloud.v1.AttachedCluster attachedCluster_; + /** + * + * + *
+   * Required. The
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * to update.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the attachedCluster field is set. + */ + @java.lang.Override + public boolean hasAttachedCluster() { + return attachedCluster_ != null; + } + /** + * + * + *
+   * Required. The
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * to update.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The attachedCluster. + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedCluster getAttachedCluster() { + return attachedCluster_ == null + ? com.google.cloud.gkemulticloud.v1.AttachedCluster.getDefaultInstance() + : attachedCluster_; + } + /** + * + * + *
+   * Required. The
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * to update.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.AttachedClusterOrBuilder getAttachedClusterOrBuilder() { + return getAttachedCluster(); + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; + private boolean validateOnly_; + /** + * + * + *
+   * If set, only validate the request, but do not actually update the cluster.
+   * 
+ * + * bool validate_only = 2; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 3; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. Mask of fields to update. At least one path must be supplied in
+   * this field. The elements of the repeated paths field can only include these
+   * fields from
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]:
+   *  *   `description`.
+   *  *   `annotations`.
+   *  *   `platform_version`.
+   *  *   `authorization.admin_users`.
+   *  *   `logging_config.component_config.enable_components`.
+   *  *   `monitoring_config.managed_prometheus_config.enabled`.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. Mask of fields to update. At least one path must be supplied in
+   * this field. The elements of the repeated paths field can only include these
+   * fields from
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]:
+   *  *   `description`.
+   *  *   `annotations`.
+   *  *   `platform_version`.
+   *  *   `authorization.admin_users`.
+   *  *   `logging_config.component_config.enable_components`.
+   *  *   `monitoring_config.managed_prometheus_config.enabled`.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.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. The elements of the repeated paths field can only include these
+   * fields from
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]:
+   *  *   `description`.
+   *  *   `annotations`.
+   *  *   `platform_version`.
+   *  *   `authorization.admin_users`.
+   *  *   `logging_config.component_config.enable_components`.
+   *  *   `monitoring_config.managed_prometheus_config.enabled`.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (attachedCluster_ != null) { + output.writeMessage(1, getAttachedCluster()); + } + if (validateOnly_ != false) { + output.writeBool(2, validateOnly_); + } + if (updateMask_ != null) { + output.writeMessage(3, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (attachedCluster_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAttachedCluster()); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, 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.gkemulticloud.v1.UpdateAttachedClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest other = + (com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest) obj; + + if (hasAttachedCluster() != other.hasAttachedCluster()) return false; + if (hasAttachedCluster()) { + if (!getAttachedCluster().equals(other.getAttachedCluster())) return false; + } + if (getValidateOnly() != other.getValidateOnly()) 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 (hasAttachedCluster()) { + hash = (37 * hash) + ATTACHED_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getAttachedCluster().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + 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.gkemulticloud.v1.UpdateAttachedClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 `AttachedClusters.UpdateAttachedCluster` method.
+   * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest) + com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_UpdateAttachedClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_UpdateAttachedClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest.class, + com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (attachedClusterBuilder_ == null) { + attachedCluster_ = null; + } else { + attachedCluster_ = null; + attachedClusterBuilder_ = null; + } + validateOnly_ = false; + + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkemulticloud.v1.AttachedServiceProto + .internal_static_google_cloud_gkemulticloud_v1_UpdateAttachedClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest + getDefaultInstanceForType() { + return com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest build() { + com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest buildPartial() { + com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest result = + new com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest(this); + if (attachedClusterBuilder_ == null) { + result.attachedCluster_ = attachedCluster_; + } else { + result.attachedCluster_ = attachedClusterBuilder_.build(); + } + result.validateOnly_ = validateOnly_; + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + 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.gkemulticloud.v1.UpdateAttachedClusterRequest) { + return mergeFrom((com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest other) { + if (other + == com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest.getDefaultInstance()) + return this; + if (other.hasAttachedCluster()) { + mergeAttachedCluster(other.getAttachedCluster()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + 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(getAttachedClusterFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 16: + { + validateOnly_ = input.readBool(); + + break; + } // case 16 + case 26: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + + 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 com.google.cloud.gkemulticloud.v1.AttachedCluster attachedCluster_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AttachedCluster, + com.google.cloud.gkemulticloud.v1.AttachedCluster.Builder, + com.google.cloud.gkemulticloud.v1.AttachedClusterOrBuilder> + attachedClusterBuilder_; + /** + * + * + *
+     * Required. The
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * to update.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the attachedCluster field is set. + */ + public boolean hasAttachedCluster() { + return attachedClusterBuilder_ != null || attachedCluster_ != null; + } + /** + * + * + *
+     * Required. The
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * to update.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The attachedCluster. + */ + public com.google.cloud.gkemulticloud.v1.AttachedCluster getAttachedCluster() { + if (attachedClusterBuilder_ == null) { + return attachedCluster_ == null + ? com.google.cloud.gkemulticloud.v1.AttachedCluster.getDefaultInstance() + : attachedCluster_; + } else { + return attachedClusterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * to update.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAttachedCluster(com.google.cloud.gkemulticloud.v1.AttachedCluster value) { + if (attachedClusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attachedCluster_ = value; + onChanged(); + } else { + attachedClusterBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * to update.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAttachedCluster( + com.google.cloud.gkemulticloud.v1.AttachedCluster.Builder builderForValue) { + if (attachedClusterBuilder_ == null) { + attachedCluster_ = builderForValue.build(); + onChanged(); + } else { + attachedClusterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * to update.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAttachedCluster(com.google.cloud.gkemulticloud.v1.AttachedCluster value) { + if (attachedClusterBuilder_ == null) { + if (attachedCluster_ != null) { + attachedCluster_ = + com.google.cloud.gkemulticloud.v1.AttachedCluster.newBuilder(attachedCluster_) + .mergeFrom(value) + .buildPartial(); + } else { + attachedCluster_ = value; + } + onChanged(); + } else { + attachedClusterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * to update.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAttachedCluster() { + if (attachedClusterBuilder_ == null) { + attachedCluster_ = null; + onChanged(); + } else { + attachedCluster_ = null; + attachedClusterBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * to update.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkemulticloud.v1.AttachedCluster.Builder getAttachedClusterBuilder() { + + onChanged(); + return getAttachedClusterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * to update.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkemulticloud.v1.AttachedClusterOrBuilder + getAttachedClusterOrBuilder() { + if (attachedClusterBuilder_ != null) { + return attachedClusterBuilder_.getMessageOrBuilder(); + } else { + return attachedCluster_ == null + ? com.google.cloud.gkemulticloud.v1.AttachedCluster.getDefaultInstance() + : attachedCluster_; + } + } + /** + * + * + *
+     * Required. The
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+     * to update.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AttachedCluster, + com.google.cloud.gkemulticloud.v1.AttachedCluster.Builder, + com.google.cloud.gkemulticloud.v1.AttachedClusterOrBuilder> + getAttachedClusterFieldBuilder() { + if (attachedClusterBuilder_ == null) { + attachedClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.AttachedCluster, + com.google.cloud.gkemulticloud.v1.AttachedCluster.Builder, + com.google.cloud.gkemulticloud.v1.AttachedClusterOrBuilder>( + getAttachedCluster(), getParentForChildren(), isClean()); + attachedCluster_ = null; + } + return attachedClusterBuilder_; + } + + private boolean validateOnly_; + /** + * + * + *
+     * If set, only validate the request, but do not actually update the cluster.
+     * 
+ * + * bool validate_only = 2; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + /** + * + * + *
+     * If set, only validate the request, but do not actually update the cluster.
+     * 
+ * + * bool validate_only = 2; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If set, only validate the request, but do not actually update the cluster.
+     * 
+ * + * bool validate_only = 2; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field. The elements of the repeated paths field can only include these
+     * fields from
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]:
+     *  *   `description`.
+     *  *   `annotations`.
+     *  *   `platform_version`.
+     *  *   `authorization.admin_users`.
+     *  *   `logging_config.component_config.enable_components`.
+     *  *   `monitoring_config.managed_prometheus_config.enabled`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field. The elements of the repeated paths field can only include these
+     * fields from
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]:
+     *  *   `description`.
+     *  *   `annotations`.
+     *  *   `platform_version`.
+     *  *   `authorization.admin_users`.
+     *  *   `logging_config.component_config.enable_components`.
+     *  *   `monitoring_config.managed_prometheus_config.enabled`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.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. The elements of the repeated paths field can only include these
+     * fields from
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]:
+     *  *   `description`.
+     *  *   `annotations`.
+     *  *   `platform_version`.
+     *  *   `authorization.admin_users`.
+     *  *   `logging_config.component_config.enable_components`.
+     *  *   `monitoring_config.managed_prometheus_config.enabled`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field. The elements of the repeated paths field can only include these
+     * fields from
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]:
+     *  *   `description`.
+     *  *   `annotations`.
+     *  *   `platform_version`.
+     *  *   `authorization.admin_users`.
+     *  *   `logging_config.component_config.enable_components`.
+     *  *   `monitoring_config.managed_prometheus_config.enabled`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field. The elements of the repeated paths field can only include these
+     * fields from
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]:
+     *  *   `description`.
+     *  *   `annotations`.
+     *  *   `platform_version`.
+     *  *   `authorization.admin_users`.
+     *  *   `logging_config.component_config.enable_components`.
+     *  *   `monitoring_config.managed_prometheus_config.enabled`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field. The elements of the repeated paths field can only include these
+     * fields from
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]:
+     *  *   `description`.
+     *  *   `annotations`.
+     *  *   `platform_version`.
+     *  *   `authorization.admin_users`.
+     *  *   `logging_config.component_config.enable_components`.
+     *  *   `monitoring_config.managed_prometheus_config.enabled`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field. The elements of the repeated paths field can only include these
+     * fields from
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]:
+     *  *   `description`.
+     *  *   `annotations`.
+     *  *   `platform_version`.
+     *  *   `authorization.admin_users`.
+     *  *   `logging_config.component_config.enable_components`.
+     *  *   `monitoring_config.managed_prometheus_config.enabled`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field. The elements of the repeated paths field can only include these
+     * fields from
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]:
+     *  *   `description`.
+     *  *   `annotations`.
+     *  *   `platform_version`.
+     *  *   `authorization.admin_users`.
+     *  *   `logging_config.component_config.enable_components`.
+     *  *   `monitoring_config.managed_prometheus_config.enabled`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.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. The elements of the repeated paths field can only include these
+     * fields from
+     * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]:
+     *  *   `description`.
+     *  *   `annotations`.
+     *  *   `platform_version`.
+     *  *   `authorization.admin_users`.
+     *  *   `logging_config.component_config.enable_components`.
+     *  *   `monitoring_config.managed_prometheus_config.enabled`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.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.gkemulticloud.v1.UpdateAttachedClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest) + private static final com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest(); + } + + public static com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAttachedClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAttachedClusterRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAttachedClusterRequestOrBuilder.java new file mode 100644 index 000000000000..320e1109bf17 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAttachedClusterRequestOrBuilder.java @@ -0,0 +1,150 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_service.proto + +package com.google.cloud.gkemulticloud.v1; + +public interface UpdateAttachedClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * to update.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the attachedCluster field is set. + */ + boolean hasAttachedCluster(); + /** + * + * + *
+   * Required. The
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * to update.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The attachedCluster. + */ + com.google.cloud.gkemulticloud.v1.AttachedCluster getAttachedCluster(); + /** + * + * + *
+   * Required. The
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
+   * to update.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gkemulticloud.v1.AttachedClusterOrBuilder getAttachedClusterOrBuilder(); + + /** + * + * + *
+   * If set, only validate the request, but do not actually update the cluster.
+   * 
+ * + * bool validate_only = 2; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * Required. Mask of fields to update. At least one path must be supplied in
+   * this field. The elements of the repeated paths field can only include these
+   * fields from
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]:
+   *  *   `description`.
+   *  *   `annotations`.
+   *  *   `platform_version`.
+   *  *   `authorization.admin_users`.
+   *  *   `logging_config.component_config.enable_components`.
+   *  *   `monitoring_config.managed_prometheus_config.enabled`.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.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. The elements of the repeated paths field can only include these
+   * fields from
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]:
+   *  *   `description`.
+   *  *   `annotations`.
+   *  *   `platform_version`.
+   *  *   `authorization.admin_users`.
+   *  *   `logging_config.component_config.enable_components`.
+   *  *   `monitoring_config.managed_prometheus_config.enabled`.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.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. The elements of the repeated paths field can only include these
+   * fields from
+   * [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]:
+   *  *   `description`.
+   *  *   `annotations`.
+   *  *   `platform_version`.
+   *  *   `authorization.admin_users`.
+   *  *   `logging_config.component_config.enable_components`.
+   *  *   `monitoring_config.managed_prometheus_config.enabled`.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAwsClusterRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAwsClusterRequest.java index 46951d4fa6bb..178241c469cd 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAwsClusterRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAwsClusterRequest.java @@ -71,7 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to update.
+   * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+   * resource to update.
    * 
* * @@ -88,7 +89,8 @@ public boolean hasAwsCluster() { * * *
-   * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to update.
+   * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+   * resource to update.
    * 
* * @@ -107,7 +109,8 @@ public com.google.cloud.gkemulticloud.v1.AwsCluster getAwsCluster() { * * *
-   * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to update.
+   * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+   * resource to update.
    * 
* * @@ -158,14 +161,17 @@ public boolean getValidateOnly() { * * `control_plane.proxy_config`. * * `control_plane.proxy_config.secret_arn`. * * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.root_volume.volume_type`. * * `control_plane.root_volume.iops`. * * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.root_volume.volume_type`. - * * `control_plane.root_volume.size_gib`. * * `control_plane.ssh_config`. * * `control_plane.ssh_config.ec2_key_pair`. * * `control_plane.instance_placement.tenancy`. - * * `logging_config`. + * * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. + * * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. *
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -196,14 +202,17 @@ public boolean hasUpdateMask() { * * `control_plane.proxy_config`. * * `control_plane.proxy_config.secret_arn`. * * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.root_volume.volume_type`. * * `control_plane.root_volume.iops`. * * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.root_volume.volume_type`. - * * `control_plane.root_volume.size_gib`. * * `control_plane.ssh_config`. * * `control_plane.ssh_config.ec2_key_pair`. * * `control_plane.instance_placement.tenancy`. - * * `logging_config`. + * * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. + * * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. *
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -234,14 +243,17 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * `control_plane.proxy_config`. * * `control_plane.proxy_config.secret_arn`. * * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.root_volume.volume_type`. * * `control_plane.root_volume.iops`. * * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.root_volume.volume_type`. - * * `control_plane.root_volume.size_gib`. * * `control_plane.ssh_config`. * * `control_plane.ssh_config.ec2_key_pair`. * * `control_plane.instance_placement.tenancy`. - * * `logging_config`. + * * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. + * * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. *
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -660,7 +672,8 @@ public Builder mergeFrom( * * *
-     * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to update.
+     * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+     * resource to update.
      * 
* * @@ -676,7 +689,8 @@ public boolean hasAwsCluster() { * * *
-     * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to update.
+     * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+     * resource to update.
      * 
* * @@ -698,7 +712,8 @@ public com.google.cloud.gkemulticloud.v1.AwsCluster getAwsCluster() { * * *
-     * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to update.
+     * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+     * resource to update.
      * 
* * @@ -722,7 +737,8 @@ public Builder setAwsCluster(com.google.cloud.gkemulticloud.v1.AwsCluster value) * * *
-     * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to update.
+     * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+     * resource to update.
      * 
* * @@ -744,7 +760,8 @@ public Builder setAwsCluster( * * *
-     * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to update.
+     * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+     * resource to update.
      * 
* * @@ -772,7 +789,8 @@ public Builder mergeAwsCluster(com.google.cloud.gkemulticloud.v1.AwsCluster valu * * *
-     * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to update.
+     * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+     * resource to update.
      * 
* * @@ -794,7 +812,8 @@ public Builder clearAwsCluster() { * * *
-     * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to update.
+     * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+     * resource to update.
      * 
* * @@ -810,7 +829,8 @@ public com.google.cloud.gkemulticloud.v1.AwsCluster.Builder getAwsClusterBuilder * * *
-     * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to update.
+     * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+     * resource to update.
      * 
* * @@ -830,7 +850,8 @@ public com.google.cloud.gkemulticloud.v1.AwsClusterOrBuilder getAwsClusterOrBuil * * *
-     * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to update.
+     * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+     * resource to update.
      * 
* * @@ -931,14 +952,17 @@ public Builder clearValidateOnly() { * * `control_plane.proxy_config`. * * `control_plane.proxy_config.secret_arn`. * * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.root_volume.volume_type`. * * `control_plane.root_volume.iops`. * * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.root_volume.volume_type`. - * * `control_plane.root_volume.size_gib`. * * `control_plane.ssh_config`. * * `control_plane.ssh_config.ec2_key_pair`. * * `control_plane.instance_placement.tenancy`. - * * `logging_config`. + * * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. + * * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. *
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -968,14 +992,17 @@ public boolean hasUpdateMask() { * * `control_plane.proxy_config`. * * `control_plane.proxy_config.secret_arn`. * * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.root_volume.volume_type`. * * `control_plane.root_volume.iops`. * * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.root_volume.volume_type`. - * * `control_plane.root_volume.size_gib`. * * `control_plane.ssh_config`. * * `control_plane.ssh_config.ec2_key_pair`. * * `control_plane.instance_placement.tenancy`. - * * `logging_config`. + * * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. + * * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. *
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1011,14 +1038,17 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * `control_plane.proxy_config`. * * `control_plane.proxy_config.secret_arn`. * * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.root_volume.volume_type`. * * `control_plane.root_volume.iops`. * * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.root_volume.volume_type`. - * * `control_plane.root_volume.size_gib`. * * `control_plane.ssh_config`. * * `control_plane.ssh_config.ec2_key_pair`. * * `control_plane.instance_placement.tenancy`. - * * `logging_config`. + * * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. + * * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. *
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1056,14 +1086,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * `control_plane.proxy_config`. * * `control_plane.proxy_config.secret_arn`. * * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.root_volume.volume_type`. * * `control_plane.root_volume.iops`. * * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.root_volume.volume_type`. - * * `control_plane.root_volume.size_gib`. * * `control_plane.ssh_config`. * * `control_plane.ssh_config.ec2_key_pair`. * * `control_plane.instance_placement.tenancy`. - * * `logging_config`. + * * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. + * * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. *
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1098,14 +1131,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * `control_plane.proxy_config`. * * `control_plane.proxy_config.secret_arn`. * * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.root_volume.volume_type`. * * `control_plane.root_volume.iops`. * * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.root_volume.volume_type`. - * * `control_plane.root_volume.size_gib`. * * `control_plane.ssh_config`. * * `control_plane.ssh_config.ec2_key_pair`. * * `control_plane.instance_placement.tenancy`. - * * `logging_config`. + * * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. + * * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. *
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1145,14 +1181,17 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * `control_plane.proxy_config`. * * `control_plane.proxy_config.secret_arn`. * * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.root_volume.volume_type`. * * `control_plane.root_volume.iops`. * * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.root_volume.volume_type`. - * * `control_plane.root_volume.size_gib`. * * `control_plane.ssh_config`. * * `control_plane.ssh_config.ec2_key_pair`. * * `control_plane.instance_placement.tenancy`. - * * `logging_config`. + * * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. + * * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. *
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1188,14 +1227,17 @@ public Builder clearUpdateMask() { * * `control_plane.proxy_config`. * * `control_plane.proxy_config.secret_arn`. * * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.root_volume.volume_type`. * * `control_plane.root_volume.iops`. * * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.root_volume.volume_type`. - * * `control_plane.root_volume.size_gib`. * * `control_plane.ssh_config`. * * `control_plane.ssh_config.ec2_key_pair`. * * `control_plane.instance_placement.tenancy`. - * * `logging_config`. + * * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. + * * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. *
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1225,14 +1267,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * `control_plane.proxy_config`. * * `control_plane.proxy_config.secret_arn`. * * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.root_volume.volume_type`. * * `control_plane.root_volume.iops`. * * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.root_volume.volume_type`. - * * `control_plane.root_volume.size_gib`. * * `control_plane.ssh_config`. * * `control_plane.ssh_config.ec2_key_pair`. * * `control_plane.instance_placement.tenancy`. - * * `logging_config`. + * * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. + * * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. *
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1266,14 +1311,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * `control_plane.proxy_config`. * * `control_plane.proxy_config.secret_arn`. * * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.root_volume.volume_type`. * * `control_plane.root_volume.iops`. * * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.root_volume.volume_type`. - * * `control_plane.root_volume.size_gib`. * * `control_plane.ssh_config`. * * `control_plane.ssh_config.ec2_key_pair`. * * `control_plane.instance_placement.tenancy`. - * * `logging_config`. + * * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. + * * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. *
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAwsClusterRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAwsClusterRequestOrBuilder.java index dc87270d63e4..0f97b243fd62 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAwsClusterRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAwsClusterRequestOrBuilder.java @@ -27,7 +27,8 @@ public interface UpdateAwsClusterRequestOrBuilder * * *
-   * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to update.
+   * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+   * resource to update.
    * 
* * @@ -41,7 +42,8 @@ public interface UpdateAwsClusterRequestOrBuilder * * *
-   * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to update.
+   * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+   * resource to update.
    * 
* * @@ -55,7 +57,8 @@ public interface UpdateAwsClusterRequestOrBuilder * * *
-   * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to update.
+   * Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]
+   * resource to update.
    * 
* * @@ -96,14 +99,17 @@ public interface UpdateAwsClusterRequestOrBuilder * * `control_plane.proxy_config`. * * `control_plane.proxy_config.secret_arn`. * * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.root_volume.volume_type`. * * `control_plane.root_volume.iops`. * * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.root_volume.volume_type`. - * * `control_plane.root_volume.size_gib`. * * `control_plane.ssh_config`. * * `control_plane.ssh_config.ec2_key_pair`. * * `control_plane.instance_placement.tenancy`. - * * `logging_config`. + * * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. + * * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. *
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -131,14 +137,17 @@ public interface UpdateAwsClusterRequestOrBuilder * * `control_plane.proxy_config`. * * `control_plane.proxy_config.secret_arn`. * * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.root_volume.volume_type`. * * `control_plane.root_volume.iops`. * * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.root_volume.volume_type`. - * * `control_plane.root_volume.size_gib`. * * `control_plane.ssh_config`. * * `control_plane.ssh_config.ec2_key_pair`. * * `control_plane.instance_placement.tenancy`. - * * `logging_config`. + * * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. + * * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. *
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -166,14 +175,17 @@ public interface UpdateAwsClusterRequestOrBuilder * * `control_plane.proxy_config`. * * `control_plane.proxy_config.secret_arn`. * * `control_plane.proxy_config.secret_version`. + * * `control_plane.root_volume.size_gib`. + * * `control_plane.root_volume.volume_type`. * * `control_plane.root_volume.iops`. * * `control_plane.root_volume.kms_key_arn`. - * * `control_plane.root_volume.volume_type`. - * * `control_plane.root_volume.size_gib`. * * `control_plane.ssh_config`. * * `control_plane.ssh_config.ec2_key_pair`. * * `control_plane.instance_placement.tenancy`. - * * `logging_config`. + * * `control_plane.iam_instance_profile`. + * * `logging_config.component_config.enable_components`. + * * `control_plane.tags`. + * * `monitoring_config.managed_prometheus_config.enabled`. *
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAwsNodePoolRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAwsNodePoolRequest.java index 02592a4fdb84..19d5837cb0b9 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAwsNodePoolRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAwsNodePoolRequest.java @@ -71,7 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to update.
+   * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+   * resource to update.
    * 
* * @@ -88,7 +89,8 @@ public boolean hasAwsNodePool() { * * *
-   * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to update.
+   * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+   * resource to update.
    * 
* * @@ -107,7 +109,8 @@ public com.google.cloud.gkemulticloud.v1.AwsNodePool getAwsNodePool() { * * *
-   * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to update.
+   * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+   * resource to update.
    * 
* * @@ -161,6 +164,13 @@ public boolean getValidateOnly() { * * `config.proxy_config.secret_version`. * * `config.ssh_config`. * * `config.ssh_config.ec2_key_pair`. + * * `config.instance_placement.tenancy`. + * * `config.iam_instance_profile`. + * * `config.labels`. + * * `config.tags`. + * * `config.autoscaling_metrics_collection`. + * * `config.autoscaling_metrics_collection.granularity`. + * * `config.autoscaling_metrics_collection.metrics`. *
* * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -194,6 +204,13 @@ public boolean hasUpdateMask() { * * `config.proxy_config.secret_version`. * * `config.ssh_config`. * * `config.ssh_config.ec2_key_pair`. + * * `config.instance_placement.tenancy`. + * * `config.iam_instance_profile`. + * * `config.labels`. + * * `config.tags`. + * * `config.autoscaling_metrics_collection`. + * * `config.autoscaling_metrics_collection.granularity`. + * * `config.autoscaling_metrics_collection.metrics`. *
* * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -227,6 +244,13 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * `config.proxy_config.secret_version`. * * `config.ssh_config`. * * `config.ssh_config.ec2_key_pair`. + * * `config.instance_placement.tenancy`. + * * `config.iam_instance_profile`. + * * `config.labels`. + * * `config.tags`. + * * `config.autoscaling_metrics_collection`. + * * `config.autoscaling_metrics_collection.granularity`. + * * `config.autoscaling_metrics_collection.metrics`. *
* * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -645,7 +669,8 @@ public Builder mergeFrom( * * *
-     * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to update.
+     * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resource to update.
      * 
* * @@ -661,7 +686,8 @@ public boolean hasAwsNodePool() { * * *
-     * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to update.
+     * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resource to update.
      * 
* * @@ -683,7 +709,8 @@ public com.google.cloud.gkemulticloud.v1.AwsNodePool getAwsNodePool() { * * *
-     * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to update.
+     * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resource to update.
      * 
* * @@ -707,7 +734,8 @@ public Builder setAwsNodePool(com.google.cloud.gkemulticloud.v1.AwsNodePool valu * * *
-     * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to update.
+     * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resource to update.
      * 
* * @@ -729,7 +757,8 @@ public Builder setAwsNodePool( * * *
-     * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to update.
+     * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resource to update.
      * 
* * @@ -757,7 +786,8 @@ public Builder mergeAwsNodePool(com.google.cloud.gkemulticloud.v1.AwsNodePool va * * *
-     * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to update.
+     * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resource to update.
      * 
* * @@ -779,7 +809,8 @@ public Builder clearAwsNodePool() { * * *
-     * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to update.
+     * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resource to update.
      * 
* * @@ -795,7 +826,8 @@ public com.google.cloud.gkemulticloud.v1.AwsNodePool.Builder getAwsNodePoolBuild * * *
-     * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to update.
+     * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resource to update.
      * 
* * @@ -815,7 +847,8 @@ public com.google.cloud.gkemulticloud.v1.AwsNodePoolOrBuilder getAwsNodePoolOrBu * * *
-     * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to update.
+     * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+     * resource to update.
      * 
* * @@ -919,6 +952,13 @@ public Builder clearValidateOnly() { * * `config.proxy_config.secret_version`. * * `config.ssh_config`. * * `config.ssh_config.ec2_key_pair`. + * * `config.instance_placement.tenancy`. + * * `config.iam_instance_profile`. + * * `config.labels`. + * * `config.tags`. + * * `config.autoscaling_metrics_collection`. + * * `config.autoscaling_metrics_collection.granularity`. + * * `config.autoscaling_metrics_collection.metrics`. *
* * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -951,6 +991,13 @@ public boolean hasUpdateMask() { * * `config.proxy_config.secret_version`. * * `config.ssh_config`. * * `config.ssh_config.ec2_key_pair`. + * * `config.instance_placement.tenancy`. + * * `config.iam_instance_profile`. + * * `config.labels`. + * * `config.tags`. + * * `config.autoscaling_metrics_collection`. + * * `config.autoscaling_metrics_collection.granularity`. + * * `config.autoscaling_metrics_collection.metrics`. *
* * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -989,6 +1036,13 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * `config.proxy_config.secret_version`. * * `config.ssh_config`. * * `config.ssh_config.ec2_key_pair`. + * * `config.instance_placement.tenancy`. + * * `config.iam_instance_profile`. + * * `config.labels`. + * * `config.tags`. + * * `config.autoscaling_metrics_collection`. + * * `config.autoscaling_metrics_collection.granularity`. + * * `config.autoscaling_metrics_collection.metrics`. *
* * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1029,6 +1083,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * `config.proxy_config.secret_version`. * * `config.ssh_config`. * * `config.ssh_config.ec2_key_pair`. + * * `config.instance_placement.tenancy`. + * * `config.iam_instance_profile`. + * * `config.labels`. + * * `config.tags`. + * * `config.autoscaling_metrics_collection`. + * * `config.autoscaling_metrics_collection.granularity`. + * * `config.autoscaling_metrics_collection.metrics`. *
* * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1066,6 +1127,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * `config.proxy_config.secret_version`. * * `config.ssh_config`. * * `config.ssh_config.ec2_key_pair`. + * * `config.instance_placement.tenancy`. + * * `config.iam_instance_profile`. + * * `config.labels`. + * * `config.tags`. + * * `config.autoscaling_metrics_collection`. + * * `config.autoscaling_metrics_collection.granularity`. + * * `config.autoscaling_metrics_collection.metrics`. *
* * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1108,6 +1176,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * `config.proxy_config.secret_version`. * * `config.ssh_config`. * * `config.ssh_config.ec2_key_pair`. + * * `config.instance_placement.tenancy`. + * * `config.iam_instance_profile`. + * * `config.labels`. + * * `config.tags`. + * * `config.autoscaling_metrics_collection`. + * * `config.autoscaling_metrics_collection.granularity`. + * * `config.autoscaling_metrics_collection.metrics`. *
* * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1146,6 +1221,13 @@ public Builder clearUpdateMask() { * * `config.proxy_config.secret_version`. * * `config.ssh_config`. * * `config.ssh_config.ec2_key_pair`. + * * `config.instance_placement.tenancy`. + * * `config.iam_instance_profile`. + * * `config.labels`. + * * `config.tags`. + * * `config.autoscaling_metrics_collection`. + * * `config.autoscaling_metrics_collection.granularity`. + * * `config.autoscaling_metrics_collection.metrics`. *
* * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1178,6 +1260,13 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * `config.proxy_config.secret_version`. * * `config.ssh_config`. * * `config.ssh_config.ec2_key_pair`. + * * `config.instance_placement.tenancy`. + * * `config.iam_instance_profile`. + * * `config.labels`. + * * `config.tags`. + * * `config.autoscaling_metrics_collection`. + * * `config.autoscaling_metrics_collection.granularity`. + * * `config.autoscaling_metrics_collection.metrics`. *
* * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1214,6 +1303,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * `config.proxy_config.secret_version`. * * `config.ssh_config`. * * `config.ssh_config.ec2_key_pair`. + * * `config.instance_placement.tenancy`. + * * `config.iam_instance_profile`. + * * `config.labels`. + * * `config.tags`. + * * `config.autoscaling_metrics_collection`. + * * `config.autoscaling_metrics_collection.granularity`. + * * `config.autoscaling_metrics_collection.metrics`. *
* * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAwsNodePoolRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAwsNodePoolRequestOrBuilder.java index 5037229d483d..cae37007911f 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAwsNodePoolRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAwsNodePoolRequestOrBuilder.java @@ -27,7 +27,8 @@ public interface UpdateAwsNodePoolRequestOrBuilder * * *
-   * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to update.
+   * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+   * resource to update.
    * 
* * @@ -41,7 +42,8 @@ public interface UpdateAwsNodePoolRequestOrBuilder * * *
-   * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to update.
+   * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+   * resource to update.
    * 
* * @@ -55,7 +57,8 @@ public interface UpdateAwsNodePoolRequestOrBuilder * * *
-   * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to update.
+   * Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
+   * resource to update.
    * 
* * @@ -99,6 +102,13 @@ public interface UpdateAwsNodePoolRequestOrBuilder * * `config.proxy_config.secret_version`. * * `config.ssh_config`. * * `config.ssh_config.ec2_key_pair`. + * * `config.instance_placement.tenancy`. + * * `config.iam_instance_profile`. + * * `config.labels`. + * * `config.tags`. + * * `config.autoscaling_metrics_collection`. + * * `config.autoscaling_metrics_collection.granularity`. + * * `config.autoscaling_metrics_collection.metrics`. *
* * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -129,6 +139,13 @@ public interface UpdateAwsNodePoolRequestOrBuilder * * `config.proxy_config.secret_version`. * * `config.ssh_config`. * * `config.ssh_config.ec2_key_pair`. + * * `config.instance_placement.tenancy`. + * * `config.iam_instance_profile`. + * * `config.labels`. + * * `config.tags`. + * * `config.autoscaling_metrics_collection`. + * * `config.autoscaling_metrics_collection.granularity`. + * * `config.autoscaling_metrics_collection.metrics`. *
* * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -159,6 +176,13 @@ public interface UpdateAwsNodePoolRequestOrBuilder * * `config.proxy_config.secret_version`. * * `config.ssh_config`. * * `config.ssh_config.ec2_key_pair`. + * * `config.instance_placement.tenancy`. + * * `config.iam_instance_profile`. + * * `config.labels`. + * * `config.tags`. + * * `config.autoscaling_metrics_collection`. + * * `config.autoscaling_metrics_collection.granularity`. + * * `config.autoscaling_metrics_collection.metrics`. *
* * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAzureClusterRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAzureClusterRequest.java index 86d11ac3ea29..26fb65ada05d 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAzureClusterRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAzureClusterRequest.java @@ -71,7 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to update.
+   * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+   * resource to update.
    * 
* * @@ -88,7 +89,8 @@ public boolean hasAzureCluster() { * * *
-   * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to update.
+   * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+   * resource to update.
    * 
* * @@ -107,7 +109,8 @@ public com.google.cloud.gkemulticloud.v1.AzureCluster getAzureCluster() { * * *
-   * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to update.
+   * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+   * resource to update.
    * 
* * @@ -147,13 +150,18 @@ public boolean getValidateOnly() { * this field. The elements of the repeated paths field can only include these * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: * * `description`. - * * `annotations`. * * `azureClient`. * * `control_plane.version`. * * `control_plane.vm_size`. + * * `annotations`. * * `authorization.admin_users`. * * `control_plane.root_volume.size_gib`. - * * `logging_config` + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.resource_group_id`. + * * `control_plane.proxy_config.secret_id`. + * * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` + * * `monitoring_config.managed_prometheus_config.enabled`. *
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -173,13 +181,18 @@ public boolean hasUpdateMask() { * this field. The elements of the repeated paths field can only include these * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: * * `description`. - * * `annotations`. * * `azureClient`. * * `control_plane.version`. * * `control_plane.vm_size`. + * * `annotations`. * * `authorization.admin_users`. * * `control_plane.root_volume.size_gib`. - * * `logging_config` + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.resource_group_id`. + * * `control_plane.proxy_config.secret_id`. + * * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` + * * `monitoring_config.managed_prometheus_config.enabled`. *
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -199,13 +212,18 @@ public com.google.protobuf.FieldMask getUpdateMask() { * this field. The elements of the repeated paths field can only include these * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: * * `description`. - * * `annotations`. * * `azureClient`. * * `control_plane.version`. * * `control_plane.vm_size`. + * * `annotations`. * * `authorization.admin_users`. * * `control_plane.root_volume.size_gib`. - * * `logging_config` + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.resource_group_id`. + * * `control_plane.proxy_config.secret_id`. + * * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` + * * `monitoring_config.managed_prometheus_config.enabled`. *
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -624,7 +642,8 @@ public Builder mergeFrom( * * *
-     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to update.
+     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resource to update.
      * 
* * @@ -640,7 +659,8 @@ public boolean hasAzureCluster() { * * *
-     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to update.
+     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resource to update.
      * 
* * @@ -662,7 +682,8 @@ public com.google.cloud.gkemulticloud.v1.AzureCluster getAzureCluster() { * * *
-     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to update.
+     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resource to update.
      * 
* * @@ -686,7 +707,8 @@ public Builder setAzureCluster(com.google.cloud.gkemulticloud.v1.AzureCluster va * * *
-     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to update.
+     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resource to update.
      * 
* * @@ -708,7 +730,8 @@ public Builder setAzureCluster( * * *
-     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to update.
+     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resource to update.
      * 
* * @@ -736,7 +759,8 @@ public Builder mergeAzureCluster(com.google.cloud.gkemulticloud.v1.AzureCluster * * *
-     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to update.
+     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resource to update.
      * 
* * @@ -758,7 +782,8 @@ public Builder clearAzureCluster() { * * *
-     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to update.
+     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resource to update.
      * 
* * @@ -774,7 +799,8 @@ public com.google.cloud.gkemulticloud.v1.AzureCluster.Builder getAzureClusterBui * * *
-     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to update.
+     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resource to update.
      * 
* * @@ -794,7 +820,8 @@ public com.google.cloud.gkemulticloud.v1.AzureClusterOrBuilder getAzureClusterOr * * *
-     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to update.
+     * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+     * resource to update.
      * 
* * @@ -884,13 +911,18 @@ public Builder clearValidateOnly() { * this field. The elements of the repeated paths field can only include these * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: * * `description`. - * * `annotations`. * * `azureClient`. * * `control_plane.version`. * * `control_plane.vm_size`. + * * `annotations`. * * `authorization.admin_users`. * * `control_plane.root_volume.size_gib`. - * * `logging_config` + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.resource_group_id`. + * * `control_plane.proxy_config.secret_id`. + * * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` + * * `monitoring_config.managed_prometheus_config.enabled`. *
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -909,13 +941,18 @@ public boolean hasUpdateMask() { * this field. The elements of the repeated paths field can only include these * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: * * `description`. - * * `annotations`. * * `azureClient`. * * `control_plane.version`. * * `control_plane.vm_size`. + * * `annotations`. * * `authorization.admin_users`. * * `control_plane.root_volume.size_gib`. - * * `logging_config` + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.resource_group_id`. + * * `control_plane.proxy_config.secret_id`. + * * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` + * * `monitoring_config.managed_prometheus_config.enabled`. *
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -940,13 +977,18 @@ public com.google.protobuf.FieldMask getUpdateMask() { * this field. The elements of the repeated paths field can only include these * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: * * `description`. - * * `annotations`. * * `azureClient`. * * `control_plane.version`. * * `control_plane.vm_size`. + * * `annotations`. * * `authorization.admin_users`. * * `control_plane.root_volume.size_gib`. - * * `logging_config` + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.resource_group_id`. + * * `control_plane.proxy_config.secret_id`. + * * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` + * * `monitoring_config.managed_prometheus_config.enabled`. *
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -973,13 +1015,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * this field. The elements of the repeated paths field can only include these * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: * * `description`. - * * `annotations`. * * `azureClient`. * * `control_plane.version`. * * `control_plane.vm_size`. + * * `annotations`. * * `authorization.admin_users`. * * `control_plane.root_volume.size_gib`. - * * `logging_config` + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.resource_group_id`. + * * `control_plane.proxy_config.secret_id`. + * * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` + * * `monitoring_config.managed_prometheus_config.enabled`. *
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1003,13 +1050,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * this field. The elements of the repeated paths field can only include these * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: * * `description`. - * * `annotations`. * * `azureClient`. * * `control_plane.version`. * * `control_plane.vm_size`. + * * `annotations`. * * `authorization.admin_users`. * * `control_plane.root_volume.size_gib`. - * * `logging_config` + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.resource_group_id`. + * * `control_plane.proxy_config.secret_id`. + * * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` + * * `monitoring_config.managed_prometheus_config.enabled`. *
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1038,13 +1090,18 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * this field. The elements of the repeated paths field can only include these * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: * * `description`. - * * `annotations`. * * `azureClient`. * * `control_plane.version`. * * `control_plane.vm_size`. + * * `annotations`. * * `authorization.admin_users`. * * `control_plane.root_volume.size_gib`. - * * `logging_config` + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.resource_group_id`. + * * `control_plane.proxy_config.secret_id`. + * * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` + * * `monitoring_config.managed_prometheus_config.enabled`. *
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1069,13 +1126,18 @@ public Builder clearUpdateMask() { * this field. The elements of the repeated paths field can only include these * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: * * `description`. - * * `annotations`. * * `azureClient`. * * `control_plane.version`. * * `control_plane.vm_size`. + * * `annotations`. * * `authorization.admin_users`. * * `control_plane.root_volume.size_gib`. - * * `logging_config` + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.resource_group_id`. + * * `control_plane.proxy_config.secret_id`. + * * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` + * * `monitoring_config.managed_prometheus_config.enabled`. *
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1094,13 +1156,18 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * this field. The elements of the repeated paths field can only include these * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: * * `description`. - * * `annotations`. * * `azureClient`. * * `control_plane.version`. * * `control_plane.vm_size`. + * * `annotations`. * * `authorization.admin_users`. * * `control_plane.root_volume.size_gib`. - * * `logging_config` + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.resource_group_id`. + * * `control_plane.proxy_config.secret_id`. + * * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` + * * `monitoring_config.managed_prometheus_config.enabled`. *
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1123,13 +1190,18 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * this field. The elements of the repeated paths field can only include these * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: * * `description`. - * * `annotations`. * * `azureClient`. * * `control_plane.version`. * * `control_plane.vm_size`. + * * `annotations`. * * `authorization.admin_users`. * * `control_plane.root_volume.size_gib`. - * * `logging_config` + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.resource_group_id`. + * * `control_plane.proxy_config.secret_id`. + * * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` + * * `monitoring_config.managed_prometheus_config.enabled`. *
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAzureClusterRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAzureClusterRequestOrBuilder.java index 5871d23dbf48..d1c6e94c5446 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAzureClusterRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAzureClusterRequestOrBuilder.java @@ -27,7 +27,8 @@ public interface UpdateAzureClusterRequestOrBuilder * * *
-   * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to update.
+   * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+   * resource to update.
    * 
* * @@ -41,7 +42,8 @@ public interface UpdateAzureClusterRequestOrBuilder * * *
-   * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to update.
+   * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+   * resource to update.
    * 
* * @@ -55,7 +57,8 @@ public interface UpdateAzureClusterRequestOrBuilder * * *
-   * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to update.
+   * Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]
+   * resource to update.
    * 
* * @@ -85,13 +88,18 @@ public interface UpdateAzureClusterRequestOrBuilder * this field. The elements of the repeated paths field can only include these * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: * * `description`. - * * `annotations`. * * `azureClient`. * * `control_plane.version`. * * `control_plane.vm_size`. + * * `annotations`. * * `authorization.admin_users`. * * `control_plane.root_volume.size_gib`. - * * `logging_config` + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.resource_group_id`. + * * `control_plane.proxy_config.secret_id`. + * * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` + * * `monitoring_config.managed_prometheus_config.enabled`. *
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -108,13 +116,18 @@ public interface UpdateAzureClusterRequestOrBuilder * this field. The elements of the repeated paths field can only include these * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: * * `description`. - * * `annotations`. * * `azureClient`. * * `control_plane.version`. * * `control_plane.vm_size`. + * * `annotations`. * * `authorization.admin_users`. * * `control_plane.root_volume.size_gib`. - * * `logging_config` + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.resource_group_id`. + * * `control_plane.proxy_config.secret_id`. + * * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` + * * `monitoring_config.managed_prometheus_config.enabled`. *
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -131,13 +144,18 @@ public interface UpdateAzureClusterRequestOrBuilder * this field. The elements of the repeated paths field can only include these * fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: * * `description`. - * * `annotations`. * * `azureClient`. * * `control_plane.version`. * * `control_plane.vm_size`. + * * `annotations`. * * `authorization.admin_users`. * * `control_plane.root_volume.size_gib`. - * * `logging_config` + * * `control_plane.proxy_config`. + * * `control_plane.proxy_config.resource_group_id`. + * * `control_plane.proxy_config.secret_id`. + * * `control_plane.ssh_config.authorized_key`. + * * `logging_config.component_config.enable_components` + * * `monitoring_config.managed_prometheus_config.enabled`. *
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAzureNodePoolRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAzureNodePoolRequest.java index 961da975456a..efcb75554d6b 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAzureNodePoolRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAzureNodePoolRequest.java @@ -71,7 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to update.
+   * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+   * resource to update.
    * 
* * @@ -88,7 +89,8 @@ public boolean hasAzureNodePool() { * * *
-   * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to update.
+   * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+   * resource to update.
    * 
* * @@ -107,7 +109,8 @@ public com.google.cloud.gkemulticloud.v1.AzureNodePool getAzureNodePool() { * * *
-   * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to update.
+   * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+   * resource to update.
    * 
* * @@ -150,7 +153,7 @@ public boolean getValidateOnly() { * * `version`. * * `autoscaling.min_node_count`. * * `autoscaling.max_node_count`. - * * `config.vm_size`. + * * `config.ssh_config.authorized_key`. *
* * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -173,7 +176,7 @@ public boolean hasUpdateMask() { * * `version`. * * `autoscaling.min_node_count`. * * `autoscaling.max_node_count`. - * * `config.vm_size`. + * * `config.ssh_config.authorized_key`. *
* * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -196,7 +199,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * `version`. * * `autoscaling.min_node_count`. * * `autoscaling.max_node_count`. - * * `config.vm_size`. + * * `config.ssh_config.authorized_key`. *
* * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -617,7 +620,8 @@ public Builder mergeFrom( * * *
-     * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to update.
+     * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resource to update.
      * 
* * @@ -633,7 +637,8 @@ public boolean hasAzureNodePool() { * * *
-     * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to update.
+     * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resource to update.
      * 
* * @@ -655,7 +660,8 @@ public com.google.cloud.gkemulticloud.v1.AzureNodePool getAzureNodePool() { * * *
-     * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to update.
+     * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resource to update.
      * 
* * @@ -679,7 +685,8 @@ public Builder setAzureNodePool(com.google.cloud.gkemulticloud.v1.AzureNodePool * * *
-     * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to update.
+     * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resource to update.
      * 
* * @@ -701,7 +708,8 @@ public Builder setAzureNodePool( * * *
-     * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to update.
+     * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resource to update.
      * 
* * @@ -729,7 +737,8 @@ public Builder mergeAzureNodePool(com.google.cloud.gkemulticloud.v1.AzureNodePoo * * *
-     * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to update.
+     * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resource to update.
      * 
* * @@ -751,7 +760,8 @@ public Builder clearAzureNodePool() { * * *
-     * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to update.
+     * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resource to update.
      * 
* * @@ -767,7 +777,8 @@ public com.google.cloud.gkemulticloud.v1.AzureNodePool.Builder getAzureNodePoolB * * *
-     * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to update.
+     * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resource to update.
      * 
* * @@ -787,7 +798,8 @@ public com.google.cloud.gkemulticloud.v1.AzureNodePoolOrBuilder getAzureNodePool * * *
-     * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to update.
+     * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+     * resource to update.
      * 
* * @@ -880,7 +892,7 @@ public Builder clearValidateOnly() { * * `version`. * * `autoscaling.min_node_count`. * * `autoscaling.max_node_count`. - * * `config.vm_size`. + * * `config.ssh_config.authorized_key`. *
* * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -902,7 +914,7 @@ public boolean hasUpdateMask() { * * `version`. * * `autoscaling.min_node_count`. * * `autoscaling.max_node_count`. - * * `config.vm_size`. + * * `config.ssh_config.authorized_key`. *
* * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -930,7 +942,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * `version`. * * `autoscaling.min_node_count`. * * `autoscaling.max_node_count`. - * * `config.vm_size`. + * * `config.ssh_config.authorized_key`. *
* * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -960,7 +972,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * `version`. * * `autoscaling.min_node_count`. * * `autoscaling.max_node_count`. - * * `config.vm_size`. + * * `config.ssh_config.authorized_key`. *
* * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -987,7 +999,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * `version`. * * `autoscaling.min_node_count`. * * `autoscaling.max_node_count`. - * * `config.vm_size`. + * * `config.ssh_config.authorized_key`. *
* * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1019,7 +1031,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * `version`. * * `autoscaling.min_node_count`. * * `autoscaling.max_node_count`. - * * `config.vm_size`. + * * `config.ssh_config.authorized_key`. *
* * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1047,7 +1059,7 @@ public Builder clearUpdateMask() { * * `version`. * * `autoscaling.min_node_count`. * * `autoscaling.max_node_count`. - * * `config.vm_size`. + * * `config.ssh_config.authorized_key`. *
* * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1069,7 +1081,7 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * `version`. * * `autoscaling.min_node_count`. * * `autoscaling.max_node_count`. - * * `config.vm_size`. + * * `config.ssh_config.authorized_key`. *
* * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1095,7 +1107,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * `version`. * * `autoscaling.min_node_count`. * * `autoscaling.max_node_count`. - * * `config.vm_size`. + * * `config.ssh_config.authorized_key`. *
* * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAzureNodePoolRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAzureNodePoolRequestOrBuilder.java index 6cff9249295f..3eb1b2233bc4 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAzureNodePoolRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/UpdateAzureNodePoolRequestOrBuilder.java @@ -27,7 +27,8 @@ public interface UpdateAzureNodePoolRequestOrBuilder * * *
-   * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to update.
+   * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+   * resource to update.
    * 
* * @@ -41,7 +42,8 @@ public interface UpdateAzureNodePoolRequestOrBuilder * * *
-   * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to update.
+   * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+   * resource to update.
    * 
* * @@ -55,7 +57,8 @@ public interface UpdateAzureNodePoolRequestOrBuilder * * *
-   * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to update.
+   * Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]
+   * resource to update.
    * 
* * @@ -88,7 +91,7 @@ public interface UpdateAzureNodePoolRequestOrBuilder * * `version`. * * `autoscaling.min_node_count`. * * `autoscaling.max_node_count`. - * * `config.vm_size`. + * * `config.ssh_config.authorized_key`. *
* * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -108,7 +111,7 @@ public interface UpdateAzureNodePoolRequestOrBuilder * * `version`. * * `autoscaling.min_node_count`. * * `autoscaling.max_node_count`. - * * `config.vm_size`. + * * `config.ssh_config.authorized_key`. *
* * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -128,7 +131,7 @@ public interface UpdateAzureNodePoolRequestOrBuilder * * `version`. * * `autoscaling.min_node_count`. * * `autoscaling.max_node_count`. - * * `config.vm_size`. + * * `config.ssh_config.authorized_key`. *
* * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/proto/google/cloud/gkemulticloud/v1/attached_resources.proto b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/proto/google/cloud/gkemulticloud/v1/attached_resources.proto new file mode 100644 index 000000000000..4c8f6ab475e7 --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/proto/google/cloud/gkemulticloud/v1/attached_resources.proto @@ -0,0 +1,230 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.gkemulticloud.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/gkemulticloud/v1/common_resources.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.GkeMultiCloud.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/gkemulticloud/v1;gkemulticloud"; +option java_multiple_files = true; +option java_outer_classname = "AttachedResourcesProto"; +option java_package = "com.google.cloud.gkemulticloud.v1"; +option php_namespace = "Google\\Cloud\\GkeMultiCloud\\V1"; +option ruby_package = "Google::Cloud::GkeMultiCloud::V1"; + +// An Anthos cluster running on customer own infrastructure. +message AttachedCluster { + option (google.api.resource) = { + type: "gkemulticloud.googleapis.com/AttachedCluster" + pattern: "projects/{project}/locations/{location}/attachedClusters/{attached_cluster}" + }; + + // The lifecycle state of the cluster. + enum State { + // Not set. + STATE_UNSPECIFIED = 0; + + // The PROVISIONING state indicates the cluster is being registered. + PROVISIONING = 1; + + // The RUNNING state indicates the cluster has been register and is fully + // usable. + RUNNING = 2; + + // The RECONCILING state indicates that some work is actively being done on + // the cluster, such as upgrading software components. + RECONCILING = 3; + + // The STOPPING state indicates the cluster is being de-registered. + STOPPING = 4; + + // The ERROR state indicates the cluster is in a broken unrecoverable + // state. + ERROR = 5; + + // The DEGRADED state indicates the cluster requires user action to + // restore full functionality. + DEGRADED = 6; + } + + // The name of this resource. + // + // Cluster names are formatted as + // `projects//locations//attachedClusters/`. + // + // See [Resource Names](https://cloud.google.com/apis/design/resource_names) + // for more details on GCP resource names. + string name = 1; + + // Optional. A human readable description of this cluster. + // Cannot be longer than 255 UTF-8 encoded bytes. + string description = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. OpenID Connect (OIDC) configuration for the cluster. + AttachedOidcConfig oidc_config = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + // + // You can list all supported versions on a given Google Cloud region by + // calling + // [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + string platform_version = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. The Kubernetes distribution of the underlying attached cluster. + // + // Supported values: ["eks", "aks"]. + string distribution = 16 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The region where this cluster runs. + // + // For EKS clusters, this is a AWS region. For AKS clusters, + // this is an Azure region. + string cluster_region = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Fleet configuration. + Fleet fleet = 5 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The current state of the cluster. + State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A globally unique identifier for the cluster. + string uid = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. If set, there are currently changes in flight to the cluster. + bool reconciling = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time at which this cluster was registered. + google.protobuf.Timestamp create_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time at which this cluster was last updated. + google.protobuf.Timestamp update_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Allows clients to perform consistent read-modify-writes + // through optimistic concurrency control. + // + // Can be sent on update and delete requests to ensure the + // client has an up-to-date value before proceeding. + string etag = 11; + + // Output only. The Kubernetes version of the cluster. + string kubernetes_version = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Annotations on the cluster. + // + // This field has the same restrictions as Kubernetes annotations. + // The total size of all keys and values combined is limited to 256k. + // Key can have 2 segments: prefix (optional) and name (required), + // separated by a slash (/). + // Prefix must be a DNS subdomain. + // Name must be 63 characters or less, begin and end with alphanumerics, + // with dashes (-), underscores (_), dots (.), and alphanumerics between. + map annotations = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Workload Identity settings. + WorkloadIdentityConfig workload_identity_config = 14 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Logging configuration for this cluster. + LoggingConfig logging_config = 15 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. A set of errors found in the cluster. + repeated AttachedClusterError errors = 20 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Configuration related to the cluster RBAC settings. + AttachedClustersAuthorization authorization = 21 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Monitoring configuration for this cluster. + MonitoringConfig monitoring_config = 23 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Configuration related to the cluster RBAC settings. +message AttachedClustersAuthorization { + // Required. Users that can perform operations as a cluster admin. A managed + // ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole + // to the users. Up to ten admin users can be provided. + // + // For more info on RBAC, see + // https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles + repeated AttachedClusterUser admin_users = 1 + [(google.api.field_behavior) = REQUIRED]; +} + +// Identities of a user-type subject for Attached clusters. +message AttachedClusterUser { + // Required. The name of the user, e.g. `my-gcp-id@gmail.com`. + string username = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// OIDC discovery information of the target cluster. +// +// Kubernetes Service Account (KSA) tokens are JWT tokens signed by the cluster +// API server. This fields indicates how GCP services +// validate KSA tokens in order to allow system workloads (such as GKE Connect +// and telemetry agents) to authenticate back to GCP. +// +// Both clusters with public and private issuer URLs are supported. +// Clusters with public issuers only need to specify the `issuer_url` field +// while clusters with private issuers need to provide both +// `issuer_url` and `oidc_jwks`. +message AttachedOidcConfig { + // A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://`. + string issuer_url = 1; + + // Optional. OIDC verification keys in JWKS format (RFC 7517). + // It contains a list of OIDC verification keys that can be used to verify + // OIDC JWTs. + // + // This field is required for cluster that doesn't have a publicly available + // discovery endpoint. When provided, it will be directly used + // to verify the OIDC JWT asserted by the IDP. + bytes jwks = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// AttachedServerConfig provides information about supported +// Kubernetes versions +message AttachedServerConfig { + option (google.api.resource) = { + type: "gkemulticloud.googleapis.com/AttachedServerConfig" + pattern: "projects/{project}/locations/{location}/attachedServerConfig" + }; + + // The resource name of the config. + string name = 1; + + // List of valid platform versions. + repeated AttachedPlatformVersionInfo valid_versions = 2; +} + +// Information about a supported Attached Clusters platform version. +message AttachedPlatformVersionInfo { + // Platform version name. + string version = 1; +} + +// AttachedClusterError describes errors found on attached clusters. +message AttachedClusterError { + // Human-friendly description of the error. + string message = 1; +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/proto/google/cloud/gkemulticloud/v1/attached_service.proto b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/proto/google/cloud/gkemulticloud/v1/attached_service.proto new file mode 100644 index 000000000000..e72d3f1ab29f --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/proto/google/cloud/gkemulticloud/v1/attached_service.proto @@ -0,0 +1,432 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.gkemulticloud.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/gkemulticloud/v1/attached_resources.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.GkeMultiCloud.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/gkemulticloud/v1;gkemulticloud"; +option java_multiple_files = true; +option java_outer_classname = "AttachedServiceProto"; +option java_package = "com.google.cloud.gkemulticloud.v1"; +option php_namespace = "Google\\Cloud\\GkeMultiCloud\\V1"; +option ruby_package = "Google::Cloud::GkeMultiCloud::V1"; + +// The AttachedClusters API provides a single centrally managed service +// to register and manage Anthos attached clusters that run on customer's owned +// infrastructure. +service AttachedClusters { + option (google.api.default_host) = "gkemulticloud.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Creates a new + // [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + // on a given GCP project and region. + // + // If successful, the response contains a newly created + // [Operation][google.longrunning.Operation] resource that can be + // described to track the status of the operation. + rpc CreateAttachedCluster(CreateAttachedClusterRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/attachedClusters" + body: "attached_cluster" + }; + option (google.api.method_signature) = + "parent,attached_cluster,attached_cluster_id"; + option (google.longrunning.operation_info) = { + response_type: "AttachedCluster" + metadata_type: "OperationMetadata" + }; + } + + // Updates an + // [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]. + rpc UpdateAttachedCluster(UpdateAttachedClusterRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{attached_cluster.name=projects/*/locations/*/attachedClusters/*}" + body: "attached_cluster" + }; + option (google.api.method_signature) = "attached_cluster,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "AttachedCluster" + metadata_type: "OperationMetadata" + }; + } + + // Imports creates a new + // [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + // by importing an existing Fleet Membership resource. + // + // Attached Clusters created before the introduction of the Anthos Multi-Cloud + // API can be imported through this method. + // + // If successful, the response contains a newly created + // [Operation][google.longrunning.Operation] resource that can be + // described to track the status of the operation. + rpc ImportAttachedCluster(ImportAttachedClusterRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/attachedClusters:import" + body: "*" + }; + option (google.api.method_signature) = "parent,fleet_membership"; + option (google.longrunning.operation_info) = { + response_type: "AttachedCluster" + metadata_type: "OperationMetadata" + }; + } + + // Describes a specific + // [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource. + rpc GetAttachedCluster(GetAttachedClusterRequest) returns (AttachedCluster) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/attachedClusters/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists all [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] + // resources on a given Google Cloud project and region. + rpc ListAttachedClusters(ListAttachedClustersRequest) + returns (ListAttachedClustersResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/attachedClusters" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a specific + // [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource. + // + // If successful, the response contains a newly created + // [Operation][google.longrunning.Operation] resource that can be + // described to track the status of the operation. + rpc DeleteAttachedCluster(DeleteAttachedClusterRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/attachedClusters/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Returns information, such as supported Kubernetes versions, on a given + // Google Cloud location. + rpc GetAttachedServerConfig(GetAttachedServerConfigRequest) + returns (AttachedServerConfig) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/attachedServerConfig}" + }; + option (google.api.method_signature) = "name"; + } + + // Generates the install manifest to be installed on the target cluster. + rpc GenerateAttachedClusterInstallManifest( + GenerateAttachedClusterInstallManifestRequest) + returns (GenerateAttachedClusterInstallManifestResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}:generateAttachedClusterInstallManifest" + }; + option (google.api.method_signature) = "parent,attached_cluster_id"; + } +} + +// Request message for `AttachedClusters.GenerateAttachedClusterInstallManifest` +// method. +message GenerateAttachedClusterInstallManifestRequest { + // Required. The parent location where this + // [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + // will be created. + // + // Location names are formatted as `projects//locations/`. + // + // See [Resource Names](https://cloud.google.com/apis/design/resource_names) + // for more details on Google Cloud resource names. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gkemulticloud.googleapis.com/AttachedCluster" + } + ]; + + // Required. A client provided ID the resource. Must be unique within the + // parent resource. + // + // The provided ID will be part of the + // [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + // name formatted as + // `projects//locations//attachedClusters/`. + // + // Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + // + // When generating an install manifest for importing an existing Membership + // resource, the attached_cluster_id field must be the Membership id. + // + // Membership names are formatted as `resource name formatted as + // `projects//locations//memberships/`. + string attached_cluster_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + // + // You can list all supported versions on a given Google Cloud region by + // calling + // [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + string platform_version = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for +// `AttachedClusters.GenerateAttachedClusterInstallManifest` method. +message GenerateAttachedClusterInstallManifestResponse { + // A set of Kubernetes resources (in YAML format) to be applied + // to the cluster to be attached. + string manifest = 1; +} + +// Request message for `AttachedClusters.CreateAttachedCluster` method. +message CreateAttachedClusterRequest { + // Required. The parent location where this + // [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + // will be created. + // + // Location names are formatted as `projects//locations/`. + // + // See [Resource Names](https://cloud.google.com/apis/design/resource_names) + // for more details on Google Cloud resource names. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gkemulticloud.googleapis.com/AttachedCluster" + } + ]; + + // Required. The specification of the + // [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create. + AttachedCluster attached_cluster = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. A client provided ID the resource. Must be unique within the + // parent resource. + // + // The provided ID will be part of the + // [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + // name formatted as + // `projects//locations//attachedClusters/`. + // + // Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. + string attached_cluster_id = 3 [(google.api.field_behavior) = REQUIRED]; + + // If set, only validate the request, but do not actually create the cluster. + bool validate_only = 4; +} + +// Request message for `AttachedClusters.ImportAttachedCluster` method. +message ImportAttachedClusterRequest { + // Required. The parent location where this + // [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + // will be created. + // + // Location names are formatted as `projects//locations/`. + // + // See [Resource Names](https://cloud.google.com/apis/design/resource_names) + // for more details on Google Cloud resource names. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gkemulticloud.googleapis.com/AttachedCluster" + } + ]; + + // If set, only validate the request, but do not actually import the cluster. + bool validate_only = 2; + + // Required. The name of the fleet membership resource to import. + string fleet_membership = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`). + // + // You can list all supported versions on a given Google Cloud region by + // calling + // [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig]. + string platform_version = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. The Kubernetes distribution of the underlying attached cluster. + // + // Supported values: ["eks", "aks"]. + string distribution = 5 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for `AttachedClusters.UpdateAttachedCluster` method. +message UpdateAttachedClusterRequest { + // Required. The + // [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + // to update. + AttachedCluster attached_cluster = 1 [(google.api.field_behavior) = REQUIRED]; + + // If set, only validate the request, but do not actually update the cluster. + bool validate_only = 2; + + // Required. Mask of fields to update. At least one path must be supplied in + // this field. The elements of the repeated paths field can only include these + // fields from + // [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]: + // + // * `description`. + // * `annotations`. + // * `platform_version`. + // * `authorization.admin_users`. + // * `logging_config.component_config.enable_components`. + // * `monitoring_config.managed_prometheus_config.enabled`. + google.protobuf.FieldMask update_mask = 3 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for `AttachedClusters.GetAttachedCluster` method. +message GetAttachedClusterRequest { + // Required. The name of the + // [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + // to describe. + // + // `AttachedCluster` names are formatted as + // `projects//locations//attachedClusters/`. + // + // See [Resource Names](https://cloud.google.com/apis/design/resource_names) + // for more details on GCP resource names. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gkemulticloud.googleapis.com/AttachedCluster" + } + ]; +} + +// Request message for `AttachedClusters.ListAttachedClusters` method. +message ListAttachedClustersRequest { + // Required. The parent location which owns this collection of + // [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources. + // + // Location names are formatted as `projects//locations/`. + // + // See [Resource Names](https://cloud.google.com/apis/design/resource_names) + // for more details on GCP resource names. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gkemulticloud.googleapis.com/AttachedCluster" + } + ]; + + // The maximum number of items to return. + // + // If not specified, a default value of 50 will be used by the service. + // Regardless of the pageSize value, the response can include a partial list + // and a caller should only rely on response's + // [nextPageToken][google.cloud.gkemulticloud.v1.ListAttachedClustersResponse.next_page_token] + // to determine if there are more instances left to be queried. + int32 page_size = 2; + + // The `nextPageToken` value returned from a previous + // [attachedClusters.list][google.cloud.gkemulticloud.v1.AttachedClusters.ListAttachedClusters] + // request, if any. + string page_token = 3; +} + +// Response message for `AttachedClusters.ListAttachedClusters` method. +message ListAttachedClustersResponse { + // A list of [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] + // resources in the specified GCP project and region region. + repeated AttachedCluster attached_clusters = 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; +} + +// Request message for `AttachedClusters.DeleteAttachedCluster` method. +message DeleteAttachedClusterRequest { + // Required. The resource name the + // [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to delete. + // + // `AttachedCluster` names are formatted as + // `projects//locations//attachedClusters/`. + // + // See [Resource Names](https://cloud.google.com/apis/design/resource_names) + // for more details on GCP resource names. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gkemulticloud.googleapis.com/AttachedCluster" + } + ]; + + // If set, only validate the request, but do not actually delete the resource. + bool validate_only = 2; + + // If set to true, and the + // [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + // is not found, the request will succeed but no action will be taken on the + // server and a completed [Operation][google.longrunning.Operation] will be + // returned. + // + // Useful for idempotent deletion. + bool allow_missing = 3; + + // If set to true, the deletion of + // [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource + // will succeed even if errors occur during deleting in cluster resources. + // Using this parameter may result in orphaned resources in the cluster. + bool ignore_errors = 5; + + // The current etag of the + // [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster]. + // + // Allows clients to perform deletions through optimistic concurrency control. + // + // If the provided etag does not match the current etag of the cluster, + // the request will fail and an ABORTED error will be returned. + string etag = 4; +} + +// GetAttachedServerConfigRequest gets the server config for attached +// clusters. +message GetAttachedServerConfigRequest { + // Required. The name of the + // [AttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedServerConfig] + // resource to describe. + // + // `AttachedServerConfig` names are formatted as + // `projects//locations//attachedServerConfig`. + // + // See [Resource Names](https://cloud.google.com/apis/design/resource_names) + // for more details on Google Cloud resource names. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gkemulticloud.googleapis.com/AttachedServerConfig" + } + ]; +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/proto/google/cloud/gkemulticloud/v1/aws_resources.proto b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/proto/google/cloud/gkemulticloud/v1/aws_resources.proto index 60e65942d1a2..dc7e918209e2 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/proto/google/cloud/gkemulticloud/v1/aws_resources.proto +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/proto/google/cloud/gkemulticloud/v1/aws_resources.proto @@ -107,10 +107,12 @@ message AwsCluster { bool reconciling = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time at which this cluster was created. - google.protobuf.Timestamp create_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time at which this cluster was last updated. - google.protobuf.Timestamp update_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Allows clients to perform consistent read-modify-writes // through optimistic concurrency control. @@ -131,16 +133,26 @@ message AwsCluster { map annotations = 14 [(google.api.field_behavior) = OPTIONAL]; // Output only. Workload Identity settings. - WorkloadIdentityConfig workload_identity_config = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; + WorkloadIdentityConfig workload_identity_config = 16 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. PEM encoded x509 certificate of the cluster root of trust. - string cluster_ca_certificate = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + string cluster_ca_certificate = 17 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. Fleet configuration. - Fleet fleet = 18 [(google.api.field_behavior) = OPTIONAL]; + // Required. Fleet configuration. + Fleet fleet = 18 [(google.api.field_behavior) = REQUIRED]; // Optional. Logging configuration for this cluster. LoggingConfig logging_config = 19 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. A set of errors found in the cluster. + repeated AwsClusterError errors = 20 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Monitoring configuration for this cluster. + MonitoringConfig monitoring_config = 21 + [(google.api.field_behavior) = OPTIONAL]; } // ControlPlane defines common parameters between control plane nodes. @@ -171,10 +183,11 @@ message AwsControlPlane { // Optional. The IDs of additional security groups to add to control plane // replicas. The Anthos Multi-Cloud API will automatically create and manage // security groups with the minimum rules needed for a functioning cluster. - repeated string security_group_ids = 5 [(google.api.field_behavior) = OPTIONAL]; + repeated string security_group_ids = 5 + [(google.api.field_behavior) = OPTIONAL]; - // Required. The name or ARN of the AWS IAM instance profile to assign to each control - // plane replica. + // Required. The name or ARN of the AWS IAM instance profile to assign to each + // control plane replica. string iam_instance_profile = 7 [(google.api.field_behavior) = REQUIRED]; // Optional. Configuration related to the root volume provisioned for each @@ -197,10 +210,11 @@ message AwsControlPlane { AwsVolumeTemplate main_volume = 9 [(google.api.field_behavior) = OPTIONAL]; // Required. The ARN of the AWS KMS key used to encrypt cluster secrets. - AwsDatabaseEncryption database_encryption = 10 [(google.api.field_behavior) = REQUIRED]; + AwsDatabaseEncryption database_encryption = 10 + [(google.api.field_behavior) = REQUIRED]; - // Optional. A set of AWS resource tags to propagate to all underlying managed AWS - // resources. + // Optional. A set of AWS resource tags to propagate to all underlying managed + // AWS resources. // // Specify at most 50 pairs containing alphanumerics, spaces, and symbols // (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to @@ -208,23 +222,26 @@ message AwsControlPlane { map tags = 11 [(google.api.field_behavior) = OPTIONAL]; // Required. Authentication configuration for management of AWS resources. - AwsServicesAuthentication aws_services_authentication = 12 [(google.api.field_behavior) = REQUIRED]; + AwsServicesAuthentication aws_services_authentication = 12 + [(google.api.field_behavior) = REQUIRED]; // Optional. Proxy configuration for outbound HTTP(S) traffic. AwsProxyConfig proxy_config = 16 [(google.api.field_behavior) = OPTIONAL]; // Required. Config encryption for user data. - AwsConfigEncryption config_encryption = 17 [(google.api.field_behavior) = REQUIRED]; + AwsConfigEncryption config_encryption = 17 + [(google.api.field_behavior) = REQUIRED]; // Optional. The placement to use on control plane instances. // When unspecified, the VPC's default tenancy will be used. - AwsInstancePlacement instance_placement = 18 [(google.api.field_behavior) = OPTIONAL]; + AwsInstancePlacement instance_placement = 18 + [(google.api.field_behavior) = OPTIONAL]; } // Authentication configuration for the management of AWS resources. message AwsServicesAuthentication { - // Required. The Amazon Resource Name (ARN) of the role that the Anthos Multi-Cloud API - // will assume when managing AWS resources on your account. + // Required. The Amazon Resource Name (ARN) of the role that the Anthos + // Multi-Cloud API will assume when managing AWS resources on your account. string role_arn = 1 [(google.api.field_behavior) = REQUIRED]; // Optional. An identifier for the assumed role session. @@ -241,7 +258,8 @@ message AwsAuthorization { // // For more info on RBAC, see // https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles - repeated AwsClusterUser admin_users = 1 [(google.api.field_behavior) = REQUIRED]; + repeated AwsClusterUser admin_users = 1 + [(google.api.field_behavior) = REQUIRED]; } // Identities of a user-type subject for AWS clusters. @@ -284,11 +302,12 @@ message AwsVolumeTemplate { // When unspecified, it defaults to GP2 volume. VolumeType volume_type = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The number of I/O operations per second (IOPS) to provision for GP3 volume. + // Optional. The number of I/O operations per second (IOPS) to provision for + // GP3 volume. int32 iops = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to - // encrypt AWS EBS volumes. + // Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) + // used to encrypt AWS EBS volumes. // // If not specified, the default Amazon managed key associated to // the AWS region where this cluster runs will be used. @@ -306,15 +325,17 @@ message AwsClusterNetworking { // This field cannot be changed after creation. string vpc_id = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. All pods in the cluster are assigned an IPv4 address from these ranges. - // Only a single range is supported. - // This field cannot be changed after creation. - repeated string pod_address_cidr_blocks = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. All services in the cluster are assigned an IPv4 address from these ranges. - // Only a single range is supported. - // This field cannot be changed after creation. - repeated string service_address_cidr_blocks = 3 [(google.api.field_behavior) = REQUIRED]; + // Required. All pods in the cluster are assigned an IPv4 address from these + // ranges. Only a single range is supported. This field cannot be changed + // after creation. + repeated string pod_address_cidr_blocks = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. All services in the cluster are assigned an IPv4 address from + // these ranges. Only a single range is supported. This field cannot be + // changed after creation. + repeated string service_address_cidr_blocks = 3 + [(google.api.field_behavior) = REQUIRED]; } // An Anthos node pool running on AWS. @@ -360,7 +381,8 @@ message AwsNodePool { // see [Resource Names](https://cloud.google.com/apis/design/resource_names) string name = 1; - // Required. The Kubernetes version to run on this node pool (e.g. `1.19.10-gke.1000`). + // Required. The Kubernetes version to run on this node pool (e.g. + // `1.19.10-gke.1000`). // // You can list all supported versions on a given Google Cloud region by // calling @@ -371,7 +393,8 @@ message AwsNodePool { AwsNodeConfig config = 28 [(google.api.field_behavior) = REQUIRED]; // Required. Autoscaler configuration for this node pool. - AwsNodePoolAutoscaling autoscaling = 25 [(google.api.field_behavior) = REQUIRED]; + AwsNodePoolAutoscaling autoscaling = 25 + [(google.api.field_behavior) = REQUIRED]; // Required. The subnet where the node pool node run. string subnet_id = 6 [(google.api.field_behavior) = REQUIRED]; @@ -387,10 +410,12 @@ message AwsNodePool { bool reconciling = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time at which this node pool was created. - google.protobuf.Timestamp create_time = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 19 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time at which this node pool was last updated. - google.protobuf.Timestamp update_time = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 20 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Allows clients to perform consistent read-modify-writes // through optimistic concurrency control. @@ -412,7 +437,12 @@ message AwsNodePool { // Required. The constraint on the maximum number of pods that can be run // simultaneously on a node in the node pool. - MaxPodsConstraint max_pods_constraint = 27 [(google.api.field_behavior) = REQUIRED]; + MaxPodsConstraint max_pods_constraint = 27 + [(google.api.field_behavior) = REQUIRED]; + + // Output only. A set of errors found in the node pool. + repeated AwsNodePoolError errors = 29 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Parameters that describe the nodes in a cluster. @@ -437,13 +467,14 @@ message AwsNodeConfig { // "mass": "1.3kg", "count": "3" }. map labels = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Key/value metadata to assign to each underlying AWS resource. Specify at - // most 50 pairs containing alphanumerics, spaces, and symbols (.+-=_:@/). - // Keys can be up to 127 Unicode characters. - // Values can be up to 255 Unicode characters. + // Optional. Key/value metadata to assign to each underlying AWS resource. + // Specify at most 50 pairs containing alphanumerics, spaces, and symbols + // (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to + // 255 Unicode characters. map tags = 5 [(google.api.field_behavior) = OPTIONAL]; - // Required. The name or ARN of the AWS IAM role assigned to nodes in the pool. + // Required. The name or ARN of the AWS IAM role assigned to nodes in the + // pool. string iam_instance_profile = 6 [(google.api.field_behavior) = REQUIRED]; // Optional. The OS image type to use on node pool instances. @@ -456,31 +487,41 @@ message AwsNodeConfig { // Optional. The SSH configuration. AwsSshConfig ssh_config = 9 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The IDs of additional security groups to add to nodes in this pool. The - // manager will automatically create security groups with minimum rules - // needed for a functioning cluster. - repeated string security_group_ids = 10 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The IDs of additional security groups to add to nodes in this + // pool. The manager will automatically create security groups with minimum + // rules needed for a functioning cluster. + repeated string security_group_ids = 10 + [(google.api.field_behavior) = OPTIONAL]; // Optional. Proxy configuration for outbound HTTP(S) traffic. AwsProxyConfig proxy_config = 12 [(google.api.field_behavior) = OPTIONAL]; // Required. Config encryption for user data. - AwsConfigEncryption config_encryption = 13 [(google.api.field_behavior) = REQUIRED]; + AwsConfigEncryption config_encryption = 13 + [(google.api.field_behavior) = REQUIRED]; // Optional. Placement related info for this node. // When unspecified, the VPC's default tenancy will be used. - AwsInstancePlacement instance_placement = 14 [(google.api.field_behavior) = OPTIONAL]; + AwsInstancePlacement instance_placement = 14 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration related to CloudWatch metrics collection on the + // Auto Scaling group of the node pool. + // + // When unspecified, metrics collection is disabled. + AwsAutoscalingGroupMetricsCollection autoscaling_metrics_collection = 15 + [(google.api.field_behavior) = OPTIONAL]; } // AwsNodePoolAutoscaling contains information required by cluster autoscaler // to adjust the size of the node pool to the current cluster usage. message AwsNodePoolAutoscaling { - // Required. Minimum number of nodes in the node pool. Must be greater than or equal to - // 1 and less than or equal to max_node_count. + // Required. Minimum number of nodes in the node pool. Must be greater than or + // equal to 1 and less than or equal to max_node_count. int32 min_node_count = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. Maximum number of nodes in the node pool. Must be greater than or equal to - // min_node_count and less than or equal to 50. + // Required. Maximum number of nodes in the node pool. Must be greater than or + // equal to min_node_count and less than or equal to 50. int32 max_node_count = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -517,6 +558,10 @@ message AwsSshConfig { message AwsProxyConfig { // The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy // configuration. + // + // The secret must be a JSON encoded proxy configuration + // as described in + // https://cloud.google.com/anthos/clusters/docs/multi-cloud/aws/how-to/use-a-proxy#create_a_proxy_configuration_file string secret_arn = 1; // The version string of the AWS Secret Manager secret that contains the @@ -554,3 +599,29 @@ message AwsInstancePlacement { // Required. The tenancy for instance. Tenancy tenancy = 1 [(google.api.field_behavior) = REQUIRED]; } + +// Configuration related to CloudWatch metrics collection in an AWS +// Auto Scaling group. +message AwsAutoscalingGroupMetricsCollection { + // Required. The frequency at which EC2 Auto Scaling sends aggregated data to + // AWS CloudWatch. The only valid value is "1Minute". + string granularity = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The metrics to enable. For a list of valid metrics, see + // https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html. + // If you specify Granularity and don't specify any metrics, all metrics are + // enabled. + repeated string metrics = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// AwsClusterError describes errors found on AWS clusters. +message AwsClusterError { + // Human-friendly description of the error. + string message = 1; +} + +// AwsNodePoolError describes errors found on AWS node pools. +message AwsNodePoolError { + // Human-friendly description of the error. + string message = 1; +} diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/proto/google/cloud/gkemulticloud/v1/aws_service.proto b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/proto/google/cloud/gkemulticloud/v1/aws_service.proto index d7f7144e5cb9..cb1f3a41db30 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/proto/google/cloud/gkemulticloud/v1/aws_service.proto +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/proto/google/cloud/gkemulticloud/v1/aws_service.proto @@ -37,14 +37,17 @@ option ruby_package = "Google::Cloud::GkeMultiCloud::V1"; // to create and manage Anthos clusters that run on AWS infrastructure. service AwsClusters { option (google.api.default_host) = "gkemulticloud.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; - // Creates a new [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource on a given GCP project and region. + // Creates a new [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + // resource on a given GCP project and region. // // If successful, the response contains a newly created // [Operation][google.longrunning.Operation] resource that can be // described to track the status of the operation. - rpc CreateAwsCluster(CreateAwsClusterRequest) returns (google.longrunning.Operation) { + rpc CreateAwsCluster(CreateAwsClusterRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/awsClusters" body: "aws_cluster" @@ -57,7 +60,8 @@ service AwsClusters { } // Updates an [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. - rpc UpdateAwsCluster(UpdateAwsClusterRequest) returns (google.longrunning.Operation) { + rpc UpdateAwsCluster(UpdateAwsClusterRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{aws_cluster.name=projects/*/locations/*/awsClusters/*}" body: "aws_cluster" @@ -69,7 +73,8 @@ service AwsClusters { }; } - // Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource. + // Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + // resource. rpc GetAwsCluster(GetAwsClusterRequest) returns (AwsCluster) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/awsClusters/*}" @@ -77,24 +82,27 @@ service AwsClusters { option (google.api.method_signature) = "name"; } - // Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources on a given Google Cloud project and - // region. - rpc ListAwsClusters(ListAwsClustersRequest) returns (ListAwsClustersResponse) { + // Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources + // on a given Google Cloud project and region. + rpc ListAwsClusters(ListAwsClustersRequest) + returns (ListAwsClustersResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/awsClusters" }; option (google.api.method_signature) = "parent"; } - // Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource. + // Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + // resource. // - // Fails if the cluster has one or more associated [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - // resources. + // Fails if the cluster has one or more associated + // [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. // // If successful, the response contains a newly created // [Operation][google.longrunning.Operation] resource that can be // described to track the status of the operation. - rpc DeleteAwsCluster(DeleteAwsClusterRequest) returns (google.longrunning.Operation) { + rpc DeleteAwsCluster(DeleteAwsClusterRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/awsClusters/*}" }; @@ -107,23 +115,27 @@ service AwsClusters { // Generates a short-lived access token to authenticate to a given // [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource. - rpc GenerateAwsAccessToken(GenerateAwsAccessTokenRequest) returns (GenerateAwsAccessTokenResponse) { + rpc GenerateAwsAccessToken(GenerateAwsAccessTokenRequest) + returns (GenerateAwsAccessTokenResponse) { option (google.api.http) = { get: "/v1/{aws_cluster=projects/*/locations/*/awsClusters/*}:generateAwsAccessToken" }; } - // Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool], attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + // Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool], + // attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. // // If successful, the response contains a newly created // [Operation][google.longrunning.Operation] resource that can be // described to track the status of the operation. - rpc CreateAwsNodePool(CreateAwsNodePoolRequest) returns (google.longrunning.Operation) { + rpc CreateAwsNodePool(CreateAwsNodePoolRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*/awsClusters/*}/awsNodePools" body: "aws_node_pool" }; - option (google.api.method_signature) = "parent,aws_node_pool,aws_node_pool_id"; + option (google.api.method_signature) = + "parent,aws_node_pool,aws_node_pool_id"; option (google.longrunning.operation_info) = { response_type: "AwsNodePool" metadata_type: "OperationMetadata" @@ -131,7 +143,8 @@ service AwsClusters { } // Updates an [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. - rpc UpdateAwsNodePool(UpdateAwsNodePoolRequest) returns (google.longrunning.Operation) { + rpc UpdateAwsNodePool(UpdateAwsNodePoolRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{aws_node_pool.name=projects/*/locations/*/awsClusters/*/awsNodePools/*}" body: "aws_node_pool" @@ -143,7 +156,8 @@ service AwsClusters { }; } - // Describes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource. + // Describes a specific + // [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource. rpc GetAwsNodePool(GetAwsNodePoolRequest) returns (AwsNodePool) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/awsClusters/*/awsNodePools/*}" @@ -151,20 +165,25 @@ service AwsClusters { option (google.api.method_signature) = "name"; } - // Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources on a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. - rpc ListAwsNodePools(ListAwsNodePoolsRequest) returns (ListAwsNodePoolsResponse) { + // Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + // resources on a given + // [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + rpc ListAwsNodePools(ListAwsNodePoolsRequest) + returns (ListAwsNodePoolsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*/awsClusters/*}/awsNodePools" }; option (google.api.method_signature) = "parent"; } - // Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource. + // Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + // resource. // // If successful, the response contains a newly created // [Operation][google.longrunning.Operation] resource that can be // described to track the status of the operation. - rpc DeleteAwsNodePool(DeleteAwsNodePoolRequest) returns (google.longrunning.Operation) { + rpc DeleteAwsNodePool(DeleteAwsNodePoolRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/awsClusters/*/awsNodePools/*}" }; @@ -187,8 +206,9 @@ service AwsClusters { // Request message for `AwsClusters.CreateAwsCluster` method. message CreateAwsClusterRequest { - // Required. The parent location where this [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource - // will be created. + // Required. The parent location where this + // [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be + // created. // // Location names are formatted as `projects//locations/`. // @@ -201,17 +221,19 @@ message CreateAwsClusterRequest { } ]; - // Required. The specification of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. + // Required. The specification of the + // [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create. AwsCluster aws_cluster = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. A client provided ID the resource. Must be unique within the parent - // resource. + // Required. A client provided ID the resource. Must be unique within the + // parent resource. // - // The provided ID will be part of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] - // resource name formatted as + // The provided ID will be part of the + // [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name + // formatted as // `projects//locations//awsClusters/`. // - // Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + // Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. string aws_cluster_id = 3 [(google.api.field_behavior) = REQUIRED]; // If set, only validate the request, but do not actually create the cluster. @@ -220,7 +242,8 @@ message CreateAwsClusterRequest { // Request message for `AwsClusters.UpdateAwsCluster` method. message UpdateAwsClusterRequest { - // Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to update. + // Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + // resource to update. AwsCluster aws_cluster = 1 [(google.api.field_behavior) = REQUIRED]; // If set, only validate the request, but do not actually update the cluster. @@ -242,20 +265,26 @@ message UpdateAwsClusterRequest { // * `control_plane.proxy_config`. // * `control_plane.proxy_config.secret_arn`. // * `control_plane.proxy_config.secret_version`. + // * `control_plane.root_volume.size_gib`. + // * `control_plane.root_volume.volume_type`. // * `control_plane.root_volume.iops`. // * `control_plane.root_volume.kms_key_arn`. - // * `control_plane.root_volume.volume_type`. - // * `control_plane.root_volume.size_gib`. // * `control_plane.ssh_config`. // * `control_plane.ssh_config.ec2_key_pair`. // * `control_plane.instance_placement.tenancy`. - // * `logging_config`. - google.protobuf.FieldMask update_mask = 4 [(google.api.field_behavior) = REQUIRED]; + // * `control_plane.iam_instance_profile`. + // * `logging_config.component_config.enable_components`. + // * `control_plane.tags`. + // * `monitoring_config.managed_prometheus_config.enabled`. + google.protobuf.FieldMask update_mask = 4 + [(google.api.field_behavior) = REQUIRED]; } // Request message for `AwsClusters.GetAwsCluster` method. message GetAwsClusterRequest { - // Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to describe. + // Required. The name of the + // [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + // describe. // // `AwsCluster` names are formatted as // `projects//locations//awsClusters/`. @@ -291,19 +320,20 @@ message ListAwsClustersRequest { // If not specified, a default value of 50 will be used by the service. // Regardless of the pageSize value, the response can include a partial list // and a caller should only rely on response's - // [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] to determine if - // there are more instances left to be queried. + // [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsClustersResponse.next_page_token] + // to determine if there are more instances left to be queried. int32 page_size = 2; // The `nextPageToken` value returned from a previous - // [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] request, if any. + // [awsClusters.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters] + // request, if any. string page_token = 3; } // Response message for `AwsClusters.ListAwsClusters` method. message ListAwsClustersResponse { - // A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources in the specified GCP - // project and region region. + // A list of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources + // in the specified GCP project and region region. repeated AwsCluster aws_clusters = 1; // Token to retrieve the next page of results, or empty if there are no more @@ -313,7 +343,8 @@ message ListAwsClustersResponse { // Request message for `AwsClusters.DeleteAwsCluster` method. message DeleteAwsClusterRequest { - // Required. The resource name the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. + // Required. The resource name the + // [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete. // // `AwsCluster` names are formatted as // `projects//locations//awsClusters/`. @@ -330,14 +361,16 @@ message DeleteAwsClusterRequest { // If set, only validate the request, but do not actually delete the resource. bool validate_only = 2; - // If set to true, and the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not found, - // the request will succeed but no action will be taken on the server and a - // completed [Operation][google.longrunning.Operation] will be returned. + // If set to true, and the + // [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource is not + // found, the request will succeed but no action will be taken on the server + // and a completed [Operation][google.longrunning.Operation] will be returned. // // Useful for idempotent deletion. bool allow_missing = 3; - // The current etag of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. + // The current etag of the + // [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. // // Allows clients to perform deletions through optimistic concurrency control. // @@ -348,7 +381,8 @@ message DeleteAwsClusterRequest { // Response message for `AwsClusters.CreateAwsNodePool` method. message CreateAwsNodePoolRequest { - // Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource where this node pool will be created. + // Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] + // resource where this node pool will be created. // // `AwsCluster` names are formatted as // `projects//locations//awsClusters/`. @@ -362,17 +396,19 @@ message CreateAwsNodePoolRequest { } ]; - // Required. The specification of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. + // Required. The specification of the + // [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create. AwsNodePool aws_node_pool = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. A client provided ID the resource. Must be unique within the parent - // resource. + // Required. A client provided ID the resource. Must be unique within the + // parent resource. // - // The provided ID will be part of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] - // resource name formatted as + // The provided ID will be part of the + // [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name + // formatted as // `projects//locations//awsClusters//awsNodePools/`. // - // Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + // Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. string aws_node_pool_id = 3 [(google.api.field_behavior) = REQUIRED]; // If set, only validate the request, but do not actually create the node @@ -382,7 +418,8 @@ message CreateAwsNodePoolRequest { // Request message for `AwsClusters.UpdateAwsNodePool` method. message UpdateAwsNodePoolRequest { - // Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to update. + // Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + // resource to update. AwsNodePool aws_node_pool = 1 [(google.api.field_behavior) = REQUIRED]; // If set, only validate the request, but don't actually update the node pool. @@ -407,12 +444,22 @@ message UpdateAwsNodePoolRequest { // * `config.proxy_config.secret_version`. // * `config.ssh_config`. // * `config.ssh_config.ec2_key_pair`. - google.protobuf.FieldMask update_mask = 3 [(google.api.field_behavior) = REQUIRED]; + // * `config.instance_placement.tenancy`. + // * `config.iam_instance_profile`. + // * `config.labels`. + // * `config.tags`. + // * `config.autoscaling_metrics_collection`. + // * `config.autoscaling_metrics_collection.granularity`. + // * `config.autoscaling_metrics_collection.metrics`. + google.protobuf.FieldMask update_mask = 3 + [(google.api.field_behavior) = REQUIRED]; } // Request message for `AwsClusters.GetAwsNodePool` method. message GetAwsNodePoolRequest { - // Required. The name of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to describe. + // Required. The name of the + // [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to + // describe. // // `AwsNodePool` names are formatted as // `projects//locations//awsClusters//awsNodePools/`. @@ -449,18 +496,20 @@ message ListAwsNodePoolsRequest { // If not specified, a default value of 50 will be used by the service. // Regardless of the pageSize value, the response can include a partial list // and a caller should only rely on response's - // [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] to determine if - // there are more instances left to be queried. + // [nextPageToken][google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse.next_page_token] + // to determine if there are more instances left to be queried. int32 page_size = 2; // The `nextPageToken` value returned from a previous - // [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] request, if any. + // [awsNodePools.list][google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools] + // request, if any. string page_token = 3; } // Response message for `AwsClusters.ListAwsNodePools` method. message ListAwsNodePoolsResponse { - // A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources in the specified `AwsCluster`. + // A list of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] + // resources in the specified `AwsCluster`. repeated AwsNodePool aws_node_pools = 1; // Token to retrieve the next page of results, or empty if there are no more @@ -468,9 +517,10 @@ message ListAwsNodePoolsResponse { string next_page_token = 2; } -// Request message for `AwsClusters.DeleteNodePool` method. +// Request message for `AwsClusters.DeleteAwsNodePool` method. message DeleteAwsNodePoolRequest { - // Required. The resource name the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. + // Required. The resource name the + // [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete. // // `AwsNodePool` names are formatted as // `projects//locations//awsClusters//awsNodePools/`. @@ -488,14 +538,16 @@ message DeleteAwsNodePoolRequest { // pool. bool validate_only = 2; - // If set to true, and the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not found, - // the request will succeed but no action will be taken on the server and a - // completed [Operation][google.longrunning.Operation] will be returned. + // If set to true, and the + // [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource is not + // found, the request will succeed but no action will be taken on the server + // and a completed [Operation][google.longrunning.Operation] will be returned. // // Useful for idempotent deletion. bool allow_missing = 3; - // The current ETag of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. + // The current ETag of the + // [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. // // Allows clients to perform deletions through optimistic concurrency control. // @@ -506,7 +558,9 @@ message DeleteAwsNodePoolRequest { // GetAwsServerConfigRequest gets the server config of GKE cluster on AWS. message GetAwsServerConfigRequest { - // Required. The name of the [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource to describe. + // Required. The name of the + // [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource + // to describe. // // `AwsServerConfig` names are formatted as // `projects//locations//awsServerConfig`. @@ -523,7 +577,9 @@ message GetAwsServerConfigRequest { // Request message for `AwsClusters.GenerateAwsAccessToken` method. message GenerateAwsAccessTokenRequest { - // Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to authenticate to. + // Required. The name of the + // [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to + // authenticate to. // // `AwsCluster` names are formatted as // `projects//locations//awsClusters/`. @@ -544,5 +600,6 @@ message GenerateAwsAccessTokenResponse { string access_token = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Timestamp at which the token will expire. - google.protobuf.Timestamp expiration_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp expiration_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/proto/google/cloud/gkemulticloud/v1/azure_resources.proto b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/proto/google/cloud/gkemulticloud/v1/azure_resources.proto index 3548c6ac8c58..b6750d764235 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/proto/google/cloud/gkemulticloud/v1/azure_resources.proto +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/proto/google/cloud/gkemulticloud/v1/azure_resources.proto @@ -85,13 +85,15 @@ message AzureCluster { // to list all supported Azure regions within a given Google Cloud region. string azure_region = 3 [(google.api.field_behavior) = REQUIRED]; - // Required. The ARM ID of the resource group where the cluster resources are deployed. - // For example: + // Required. The ARM ID of the resource group where the cluster resources are + // deployed. For example: // `/subscriptions//resourceGroups/` string resource_group_id = 17 [(google.api.field_behavior) = REQUIRED]; - // Required. Name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains authentication configuration for - // how the Anthos Multi-Cloud API connects to Azure APIs. + // Required. Name of the + // [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] that contains + // authentication configuration for how the Anthos Multi-Cloud API connects to + // Azure APIs. // // The `AzureClient` resource must reside on the same GCP project and region // as the `AzureCluster`. @@ -104,7 +106,8 @@ message AzureCluster { string azure_client = 16 [(google.api.field_behavior) = REQUIRED]; // Required. Cluster-wide networking configuration. - AzureClusterNetworking networking = 4 [(google.api.field_behavior) = REQUIRED]; + AzureClusterNetworking networking = 4 + [(google.api.field_behavior) = REQUIRED]; // Required. Configuration related to the cluster control plane. AzureControlPlane control_plane = 5 [(google.api.field_behavior) = REQUIRED]; @@ -125,10 +128,12 @@ message AzureCluster { bool reconciling = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time at which this cluster was created. - google.protobuf.Timestamp create_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time at which this cluster was last updated. - google.protobuf.Timestamp update_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Allows clients to perform consistent read-modify-writes // through optimistic concurrency control. @@ -149,25 +154,36 @@ message AzureCluster { map annotations = 14 [(google.api.field_behavior) = OPTIONAL]; // Output only. Workload Identity settings. - WorkloadIdentityConfig workload_identity_config = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + WorkloadIdentityConfig workload_identity_config = 18 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. PEM encoded x509 certificate of the cluster root of trust. - string cluster_ca_certificate = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + string cluster_ca_certificate = 19 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. Fleet configuration. - Fleet fleet = 20 [(google.api.field_behavior) = OPTIONAL]; + // Required. Fleet configuration. + Fleet fleet = 20 [(google.api.field_behavior) = REQUIRED]; - // Output only. Mananged Azure resources for this cluster. - AzureClusterResources managed_resources = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Managed Azure resources for this cluster. + AzureClusterResources managed_resources = 21 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. Logging configuration for this cluster. LoggingConfig logging_config = 23 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. A set of errors found in the cluster. + repeated AzureClusterError errors = 24 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Monitoring configuration for this cluster. + MonitoringConfig monitoring_config = 25 + [(google.api.field_behavior) = OPTIONAL]; } // ClusterNetworking contains cluster-wide networking configuration. message AzureClusterNetworking { - // Required. The Azure Resource Manager (ARM) ID of the VNet associated with your - // cluster. + // Required. The Azure Resource Manager (ARM) ID of the VNet associated with + // your cluster. // // All components in the cluster (i.e. control plane and node pools) run on a // single VNet. @@ -185,7 +201,8 @@ message AzureClusterNetworking { // ranges. Only a single range is supported. // // This field cannot be changed after creation. - repeated string pod_address_cidr_blocks = 2 [(google.api.field_behavior) = REQUIRED]; + repeated string pod_address_cidr_blocks = 2 + [(google.api.field_behavior) = REQUIRED]; // Required. The IP address range for services in this cluster, in CIDR // notation (e.g. `10.96.0.0/14`). @@ -194,15 +211,17 @@ message AzureClusterNetworking { // ranges. Only a single range is supported. // // This field cannot be changed after creating a cluster. - repeated string service_address_cidr_blocks = 3 [(google.api.field_behavior) = REQUIRED]; + repeated string service_address_cidr_blocks = 3 + [(google.api.field_behavior) = REQUIRED]; - // Optional. The ARM ID of the subnet where Kubernetes private service type load - // balancers are deployed. When unspecified, it defaults to + // Optional. The ARM ID of the subnet where Kubernetes private service type + // load balancers are deployed. When unspecified, it defaults to // AzureControlPlane.subnet_id. // // Example: // "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456" - string service_load_balancer_subnet_id = 5 [(google.api.field_behavior) = OPTIONAL]; + string service_load_balancer_subnet_id = 5 + [(google.api.field_behavior) = OPTIONAL]; } // AzureControlPlane represents the control plane configurations. @@ -215,8 +234,8 @@ message AzureControlPlane { // [GetAzureServerConfig][google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig]. string version = 1 [(google.api.field_behavior) = REQUIRED]; - // Optional. The ARM ID of the default subnet for the control plane. The control plane - // VMs are deployed in this subnet, unless + // Optional. The ARM ID of the default subnet for the control plane. The + // control plane VMs are deployed in this subnet, unless // `AzureControlPlane.replica_placements` is specified. This subnet will also // be used as default for `AzureControlPlane.endpoint_subnet_id` if // `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will @@ -253,15 +272,18 @@ message AzureControlPlane { AzureDiskTemplate main_volume = 5 [(google.api.field_behavior) = OPTIONAL]; // Optional. Configuration related to application-layer secrets encryption. - AzureDatabaseEncryption database_encryption = 10 [(google.api.field_behavior) = OPTIONAL]; + AzureDatabaseEncryption database_encryption = 10 + [(google.api.field_behavior) = OPTIONAL]; // Optional. Proxy configuration for outbound HTTP(S) traffic. AzureProxyConfig proxy_config = 12 [(google.api.field_behavior) = OPTIONAL]; // Optional. Configuration related to vm config encryption. - AzureConfigEncryption config_encryption = 14 [(google.api.field_behavior) = OPTIONAL]; + AzureConfigEncryption config_encryption = 14 + [(google.api.field_behavior) = OPTIONAL]; - // Optional. A set of tags to apply to all underlying control plane Azure resources. + // Optional. A set of tags to apply to all underlying control plane Azure + // resources. map tags = 7 [(google.api.field_behavior) = OPTIONAL]; // Optional. Configuration for where to place the control plane replicas. @@ -269,10 +291,11 @@ message AzureControlPlane { // Up to three replica placement instances can be specified. If // replica_placements is set, the replica placement instances will be applied // to the three control plane replicas as evenly as possible. - repeated ReplicaPlacement replica_placements = 13 [(google.api.field_behavior) = OPTIONAL]; + repeated ReplicaPlacement replica_placements = 13 + [(google.api.field_behavior) = OPTIONAL]; - // Optional. The ARM ID of the subnet where the control plane load balancer is deployed. - // When unspecified, it defaults to AzureControlPlane.subnet_id. + // Optional. The ARM ID of the subnet where the control plane load balancer is + // deployed. When unspecified, it defaults to AzureControlPlane.subnet_id. // // Example: // "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123" @@ -281,13 +304,13 @@ message AzureControlPlane { // Configuration for the placement of a control plane replica. message ReplicaPlacement { - // Required. For a given replica, the ARM ID of the subnet where the control plane VM is - // deployed. Make sure it's a subnet under the virtual network in the cluster - // configuration. + // Required. For a given replica, the ARM ID of the subnet where the control + // plane VM is deployed. Make sure it's a subnet under the virtual network in + // the cluster configuration. string subnet_id = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. For a given replica, the Azure availability zone where to provision the - // control plane VM and the ETCD disk. + // Required. For a given replica, the Azure availability zone where to + // provision the control plane VM and the ETCD disk. string azure_availability_zone = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -301,6 +324,10 @@ message AzureProxyConfig { // The URL the of the proxy setting secret with its version. // + // The secret must be a JSON encoded proxy configuration + // as described in + // https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file + // // Secret ids are formatted as // `https://.vault.azure.net/secrets//`. string secret_id = 2; @@ -325,13 +352,15 @@ message AzureDatabaseEncryption { // Azure VM bootstrap secret is envelope encrypted with the provided key vault // key. message AzureConfigEncryption { - // Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config data. + // Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config + // data. // // For example: // `/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/` string key_id = 2 [(google.api.field_behavior) = REQUIRED]; - // Optional. RSA key of the Azure Key Vault public key to use for encrypting the data. + // Optional. RSA key of the Azure Key Vault public key to use for encrypting + // the data. // // This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280) // in ASN.1 DER form. The string must be comprised of a single PEM block of @@ -351,9 +380,10 @@ message AzureDiskTemplate { // `AzureClient` resources hold client authentication information needed by the // Anthos Multi-Cloud API to manage Azure resources on your Azure subscription. // -// When an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] is created, an `AzureClient` resource needs to be -// provided and all operations on Azure resources associated to that cluster -// will authenticate to Azure services using the given client. +// When an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] is +// created, an `AzureClient` resource needs to be provided and all operations on +// Azure resources associated to that cluster will authenticate to Azure +// services using the given client. // // `AzureClient` resources are immutable and cannot be modified upon creation. // @@ -398,7 +428,8 @@ message AzureClient { string uid = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time at which this resource was created. - google.protobuf.Timestamp create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Configuration related to the cluster RBAC settings. @@ -409,7 +440,8 @@ message AzureAuthorization { // // For more info on RBAC, see // https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles - repeated AzureClusterUser admin_users = 1 [(google.api.field_behavior) = REQUIRED]; + repeated AzureClusterUser admin_users = 1 + [(google.api.field_behavior) = REQUIRED]; } // Identities of a user-type subject for Azure clusters. @@ -461,18 +493,20 @@ message AzureNodePool { // see [Resource Names](https://cloud.google.com/apis/design/resource_names) string name = 1; - // Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this node pool. + // Required. The Kubernetes version (e.g. `1.19.10-gke.1000`) running on this + // node pool. string version = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The node configuration of the node pool. AzureNodeConfig config = 22 [(google.api.field_behavior) = REQUIRED]; - // Required. The ARM ID of the subnet where the node pool VMs run. Make sure it's a - // subnet under the virtual network in the cluster configuration. + // Required. The ARM ID of the subnet where the node pool VMs run. Make sure + // it's a subnet under the virtual network in the cluster configuration. string subnet_id = 3 [(google.api.field_behavior) = REQUIRED]; // Required. Autoscaler configuration for this node pool. - AzureNodePoolAutoscaling autoscaling = 4 [(google.api.field_behavior) = REQUIRED]; + AzureNodePoolAutoscaling autoscaling = 4 + [(google.api.field_behavior) = REQUIRED]; // Output only. The current state of the node pool. State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -485,10 +519,12 @@ message AzureNodePool { bool reconciling = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time at which this node pool was created. - google.protobuf.Timestamp create_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time at which this node pool was last updated. - google.protobuf.Timestamp update_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Allows clients to perform consistent read-modify-writes // through optimistic concurrency control. @@ -510,12 +546,17 @@ message AzureNodePool { // Required. The constraint on the maximum number of pods that can be run // simultaneously on a node in the node pool. - MaxPodsConstraint max_pods_constraint = 21 [(google.api.field_behavior) = REQUIRED]; + MaxPodsConstraint max_pods_constraint = 21 + [(google.api.field_behavior) = REQUIRED]; // Optional. The Azure availability zone of the nodes in this nodepool. // // When unspecified, it defaults to `1`. string azure_availability_zone = 23 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. A set of errors found in the node pool. + repeated AzureNodePoolError errors = 29 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Parameters that describe the configuration of all node machines @@ -535,8 +576,8 @@ message AzureNodeConfig { // When unspecified, it defaults to a 32-GiB Azure Disk. AzureDiskTemplate root_volume = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. A set of tags to apply to all underlying Azure resources for this node - // pool. This currently only includes Virtual Machine Scale Sets. + // Optional. A set of tags to apply to all underlying Azure resources for this + // node pool. This currently only includes Virtual Machine Scale Sets. // // Specify at most 50 pairs containing alphanumerics, spaces, and symbols // (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to @@ -557,7 +598,8 @@ message AzureNodeConfig { AzureProxyConfig proxy_config = 9 [(google.api.field_behavior) = OPTIONAL]; // Optional. Configuration related to vm config encryption. - AzureConfigEncryption config_encryption = 12 [(google.api.field_behavior) = OPTIONAL]; + AzureConfigEncryption config_encryption = 12 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The initial taints assigned to nodes of this node pool. repeated NodeTaint taints = 10 [(google.api.field_behavior) = OPTIONAL]; @@ -573,12 +615,12 @@ message AzureNodeConfig { // The Kubernetes cluster autoscaler will automatically adjust the // size of the node pool based on the cluster load. message AzureNodePoolAutoscaling { - // Required. Minimum number of nodes in the node pool. Must be greater than or equal to - // 1 and less than or equal to max_node_count. + // Required. Minimum number of nodes in the node pool. Must be greater than or + // equal to 1 and less than or equal to max_node_count. int32 min_node_count = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. Maximum number of nodes in the node pool. Must be greater than or equal to - // min_node_count and less than or equal to 50. + // Required. Maximum number of nodes in the node pool. Must be greater than or + // equal to min_node_count and less than or equal to 50. int32 max_node_count = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -614,9 +656,9 @@ message AzureK8sVersionInfo { // SSH configuration for Azure resources. message AzureSshConfig { - // Required. The SSH public key data for VMs managed by Anthos. This accepts the - // authorized_keys file format used in OpenSSH according to the sshd(8) manual - // page. + // Required. The SSH public key data for VMs managed by Anthos. This accepts + // the authorized_keys file format used in OpenSSH according to the sshd(8) + // manual page. string authorized_key = 1 [(google.api.field_behavior) = REQUIRED]; } @@ -625,8 +667,22 @@ message AzureSshConfig { // The values could change and be empty, depending on the state of the cluster. message AzureClusterResources { // Output only. The ARM ID of the cluster network security group. - string network_security_group_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string network_security_group_id = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The ARM ID of the control plane application security group. - string control_plane_application_security_group_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + string control_plane_application_security_group_id = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// AzureClusterError describes errors found on Azure clusters. +message AzureClusterError { + // Human-friendly description of the error. + string message = 1; +} + +// AzureNodePoolError describes errors found on Azure node pools. +message AzureNodePoolError { + // Human-friendly description of the error. + string message = 1; } diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/proto/google/cloud/gkemulticloud/v1/azure_service.proto b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/proto/google/cloud/gkemulticloud/v1/azure_service.proto index aed6420f79a6..2593468ad42e 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/proto/google/cloud/gkemulticloud/v1/azure_service.proto +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/proto/google/cloud/gkemulticloud/v1/azure_service.proto @@ -37,10 +37,11 @@ option ruby_package = "Google::Cloud::GkeMultiCloud::V1"; // to create and manage Anthos clusters that run on Azure infrastructure. service AzureClusters { option (google.api.default_host) = "gkemulticloud.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; - // Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource on a given Google Cloud project - // and region. + // Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + // resource on a given Google Cloud project and region. // // `AzureClient` resources hold client authentication // information needed by the Anthos Multicloud API to manage Azure resources @@ -49,19 +50,22 @@ service AzureClusters { // If successful, the response contains a newly created // [Operation][google.longrunning.Operation] resource that can be // described to track the status of the operation. - rpc CreateAzureClient(CreateAzureClientRequest) returns (google.longrunning.Operation) { + rpc CreateAzureClient(CreateAzureClientRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/azureClients" body: "azure_client" }; - option (google.api.method_signature) = "parent,azure_client,azure_client_id"; + option (google.api.method_signature) = + "parent,azure_client,azure_client_id"; option (google.longrunning.operation_info) = { response_type: "AzureClient" metadata_type: "OperationMetadata" }; } - // Describes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource. + // Describes a specific + // [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource. rpc GetAzureClient(GetAzureClientRequest) returns (AzureClient) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/azureClients/*}" @@ -69,16 +73,18 @@ service AzureClusters { option (google.api.method_signature) = "name"; } - // Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources on a given Google Cloud project and - // region. - rpc ListAzureClients(ListAzureClientsRequest) returns (ListAzureClientsResponse) { + // Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + // resources on a given Google Cloud project and region. + rpc ListAzureClients(ListAzureClientsRequest) + returns (ListAzureClientsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/azureClients" }; option (google.api.method_signature) = "parent"; } - // Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource. + // Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + // resource. // // If the client is used by one or more clusters, deletion will // fail and a `FAILED_PRECONDITION` error will be returned. @@ -86,7 +92,8 @@ service AzureClusters { // If successful, the response contains a newly created // [Operation][google.longrunning.Operation] resource that can be // described to track the status of the operation. - rpc DeleteAzureClient(DeleteAzureClientRequest) returns (google.longrunning.Operation) { + rpc DeleteAzureClient(DeleteAzureClientRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/azureClients/*}" }; @@ -97,17 +104,20 @@ service AzureClusters { }; } - // Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource on a given GCP project and region. + // Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + // resource on a given GCP project and region. // // If successful, the response contains a newly created // [Operation][google.longrunning.Operation] resource that can be // described to track the status of the operation. - rpc CreateAzureCluster(CreateAzureClusterRequest) returns (google.longrunning.Operation) { + rpc CreateAzureCluster(CreateAzureClusterRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/azureClusters" body: "azure_cluster" }; - option (google.api.method_signature) = "parent,azure_cluster,azure_cluster_id"; + option (google.api.method_signature) = + "parent,azure_cluster,azure_cluster_id"; option (google.longrunning.operation_info) = { response_type: "AzureCluster" metadata_type: "OperationMetadata" @@ -115,7 +125,8 @@ service AzureClusters { } // Updates an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. - rpc UpdateAzureCluster(UpdateAzureClusterRequest) returns (google.longrunning.Operation) { + rpc UpdateAzureCluster(UpdateAzureClusterRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{azure_cluster.name=projects/*/locations/*/azureClusters/*}" body: "azure_cluster" @@ -127,7 +138,8 @@ service AzureClusters { }; } - // Describes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. + // Describes a specific + // [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. rpc GetAzureCluster(GetAzureClusterRequest) returns (AzureCluster) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/azureClusters/*}" @@ -135,24 +147,27 @@ service AzureClusters { option (google.api.method_signature) = "name"; } - // Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources on a given Google Cloud project and - // region. - rpc ListAzureClusters(ListAzureClustersRequest) returns (ListAzureClustersResponse) { + // Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + // resources on a given Google Cloud project and region. + rpc ListAzureClusters(ListAzureClustersRequest) + returns (ListAzureClustersResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/azureClusters" }; option (google.api.method_signature) = "parent"; } - // Deletes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. + // Deletes a specific + // [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. // - // Fails if the cluster has one or more associated [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - // resources. + // Fails if the cluster has one or more associated + // [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. // // If successful, the response contains a newly created // [Operation][google.longrunning.Operation] resource that can be // described to track the status of the operation. - rpc DeleteAzureCluster(DeleteAzureClusterRequest) returns (google.longrunning.Operation) { + rpc DeleteAzureCluster(DeleteAzureClusterRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/azureClusters/*}" }; @@ -165,23 +180,28 @@ service AzureClusters { // Generates a short-lived access token to authenticate to a given // [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. - rpc GenerateAzureAccessToken(GenerateAzureAccessTokenRequest) returns (GenerateAzureAccessTokenResponse) { + rpc GenerateAzureAccessToken(GenerateAzureAccessTokenRequest) + returns (GenerateAzureAccessTokenResponse) { option (google.api.http) = { get: "/v1/{azure_cluster=projects/*/locations/*/azureClusters/*}:generateAzureAccessToken" }; } - // Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool], attached to a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + // Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool], + // attached to a given + // [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. // // If successful, the response contains a newly created // [Operation][google.longrunning.Operation] resource that can be // described to track the status of the operation. - rpc CreateAzureNodePool(CreateAzureNodePoolRequest) returns (google.longrunning.Operation) { + rpc CreateAzureNodePool(CreateAzureNodePoolRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*/azureClusters/*}/azureNodePools" body: "azure_node_pool" }; - option (google.api.method_signature) = "parent,azure_node_pool,azure_node_pool_id"; + option (google.api.method_signature) = + "parent,azure_node_pool,azure_node_pool_id"; option (google.longrunning.operation_info) = { response_type: "AzureNodePool" metadata_type: "OperationMetadata" @@ -189,7 +209,8 @@ service AzureClusters { } // Updates an [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. - rpc UpdateAzureNodePool(UpdateAzureNodePoolRequest) returns (google.longrunning.Operation) { + rpc UpdateAzureNodePool(UpdateAzureNodePoolRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{azure_node_pool.name=projects/*/locations/*/azureClusters/*/azureNodePools/*}" body: "azure_node_pool" @@ -201,7 +222,8 @@ service AzureClusters { }; } - // Describes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. + // Describes a specific + // [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. rpc GetAzureNodePool(GetAzureNodePoolRequest) returns (AzureNodePool) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/azureClusters/*/azureNodePools/*}" @@ -209,20 +231,25 @@ service AzureClusters { option (google.api.method_signature) = "name"; } - // Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources on a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. - rpc ListAzureNodePools(ListAzureNodePoolsRequest) returns (ListAzureNodePoolsResponse) { + // Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + // resources on a given + // [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + rpc ListAzureNodePools(ListAzureNodePoolsRequest) + returns (ListAzureNodePoolsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*/azureClusters/*}/azureNodePools" }; option (google.api.method_signature) = "parent"; } - // Deletes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. + // Deletes a specific + // [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. // // If successful, the response contains a newly created // [Operation][google.longrunning.Operation] resource that can be // described to track the status of the operation. - rpc DeleteAzureNodePool(DeleteAzureNodePoolRequest) returns (google.longrunning.Operation) { + rpc DeleteAzureNodePool(DeleteAzureNodePoolRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/azureClusters/*/azureNodePools/*}" }; @@ -235,7 +262,8 @@ service AzureClusters { // Returns information, such as supported Azure regions and Kubernetes // versions, on a given Google Cloud location. - rpc GetAzureServerConfig(GetAzureServerConfigRequest) returns (AzureServerConfig) { + rpc GetAzureServerConfig(GetAzureServerConfigRequest) + returns (AzureServerConfig) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/azureServerConfig}" }; @@ -245,8 +273,9 @@ service AzureClusters { // Request message for `AzureClusters.CreateAzureCluster` method. message CreateAzureClusterRequest { - // Required. The parent location where this [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource - // will be created. + // Required. The parent location where this + // [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be + // created. // // Location names are formatted as `projects//locations/`. // @@ -259,17 +288,19 @@ message CreateAzureClusterRequest { } ]; - // Required. The specification of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. + // Required. The specification of the + // [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create. AzureCluster azure_cluster = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. A client provided ID the resource. Must be unique within the parent - // resource. + // Required. A client provided ID the resource. Must be unique within the + // parent resource. // - // The provided ID will be part of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] - // resource name formatted as + // The provided ID will be part of the + // [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name + // formatted as // `projects//locations//azureClusters/`. // - // Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + // Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. string azure_cluster_id = 3 [(google.api.field_behavior) = REQUIRED]; // If set, only validate the request, but do not actually create the cluster. @@ -278,7 +309,8 @@ message CreateAzureClusterRequest { // Request message for `AzureClusters.UpdateAzureCluster` method. message UpdateAzureClusterRequest { - // Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to update. + // Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + // resource to update. AzureCluster azure_cluster = 1 [(google.api.field_behavior) = REQUIRED]; // If set, only validate the request, but do not actually update the cluster. @@ -289,19 +321,27 @@ message UpdateAzureClusterRequest { // fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]: // // * `description`. - // * `annotations`. // * `azureClient`. // * `control_plane.version`. // * `control_plane.vm_size`. + // * `annotations`. // * `authorization.admin_users`. // * `control_plane.root_volume.size_gib`. - // * `logging_config` - google.protobuf.FieldMask update_mask = 4 [(google.api.field_behavior) = REQUIRED]; + // * `control_plane.proxy_config`. + // * `control_plane.proxy_config.resource_group_id`. + // * `control_plane.proxy_config.secret_id`. + // * `control_plane.ssh_config.authorized_key`. + // * `logging_config.component_config.enable_components` + // * `monitoring_config.managed_prometheus_config.enabled`. + google.protobuf.FieldMask update_mask = 4 + [(google.api.field_behavior) = REQUIRED]; } // Request message for `AzureClusters.GetAzureCluster` method. message GetAzureClusterRequest { - // Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to describe. + // Required. The name of the + // [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + // describe. // // `AzureCluster` names are formatted as // `projects//locations//azureClusters/`. @@ -337,19 +377,20 @@ message ListAzureClustersRequest { // If not specified, a default value of 50 will be used by the service. // Regardless of the pageSize value, the response can include a partial list // and a caller should only rely on response's - // [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] to determine if - // there are more instances left to be queried. + // [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClustersResponse.next_page_token] + // to determine if there are more instances left to be queried. int32 page_size = 2; // The `nextPageToken` value returned from a previous - // [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] request, if any. + // [azureClusters.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters] + // request, if any. string page_token = 3; } // Response message for `AzureClusters.ListAzureClusters` method. message ListAzureClustersResponse { - // A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources in the specified GCP - // project and region region. + // A list of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + // resources in the specified GCP project and region region. repeated AzureCluster azure_clusters = 1; // Token to retrieve the next page of results, or empty if there are no more @@ -359,7 +400,8 @@ message ListAzureClustersResponse { // Request message for `Clusters.DeleteAzureCluster` method. message DeleteAzureClusterRequest { - // Required. The resource name the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. + // Required. The resource name the + // [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete. // // `AzureCluster` names are formatted as // `projects//locations//azureClusters/`. @@ -373,9 +415,10 @@ message DeleteAzureClusterRequest { } ]; - // If set to true, and the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not found, - // the request will succeed but no action will be taken on the server and a - // completed [Operation][google.longrunning.Operation] will be returned. + // If set to true, and the + // [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource is not + // found, the request will succeed but no action will be taken on the server + // and a completed [Operation][google.longrunning.Operation] will be returned. // // Useful for idempotent deletion. bool allow_missing = 2; @@ -383,7 +426,8 @@ message DeleteAzureClusterRequest { // If set, only validate the request, but do not actually delete the resource. bool validate_only = 3; - // The current etag of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. + // The current etag of the + // [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. // // Allows clients to perform deletions through optimistic concurrency control. // @@ -394,7 +438,8 @@ message DeleteAzureClusterRequest { // Response message for `AzureClusters.CreateAzureNodePool` method. message CreateAzureNodePoolRequest { - // Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource where this node pool will be created. + // Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] + // resource where this node pool will be created. // // Location names are formatted as `projects//locations/`. // @@ -407,17 +452,19 @@ message CreateAzureNodePoolRequest { } ]; - // Required. The specification of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. + // Required. The specification of the + // [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create. AzureNodePool azure_node_pool = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. A client provided ID the resource. Must be unique within the parent - // resource. + // Required. A client provided ID the resource. Must be unique within the + // parent resource. // - // The provided ID will be part of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] - // resource name formatted as + // The provided ID will be part of the + // [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name + // formatted as // `projects//locations//azureClusters//azureNodePools/`. // - // Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + // Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. string azure_node_pool_id = 3 [(google.api.field_behavior) = REQUIRED]; // If set, only validate the request, but do not actually create the node @@ -427,7 +474,8 @@ message CreateAzureNodePoolRequest { // Request message for `AzureClusters.UpdateAzureNodePool` method. message UpdateAzureNodePoolRequest { - // Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to update. + // Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + // resource to update. AzureNodePool azure_node_pool = 1 [(google.api.field_behavior) = REQUIRED]; // If set, only validate the request, but don't actually update the node pool. @@ -441,13 +489,16 @@ message UpdateAzureNodePoolRequest { // * `version`. // * `autoscaling.min_node_count`. // * `autoscaling.max_node_count`. - // * `config.vm_size`. - google.protobuf.FieldMask update_mask = 3 [(google.api.field_behavior) = REQUIRED]; + // * `config.ssh_config.authorized_key`. + google.protobuf.FieldMask update_mask = 3 + [(google.api.field_behavior) = REQUIRED]; } // Request message for `AzureClusters.GetAzureNodePool` method. message GetAzureNodePoolRequest { - // Required. The name of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to describe. + // Required. The name of the + // [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to + // describe. // // `AzureNodePool` names are formatted as // `projects//locations//azureClusters//azureNodePools/`. @@ -484,18 +535,20 @@ message ListAzureNodePoolsRequest { // If not specified, a default value of 50 will be used by the service. // Regardless of the pageSize value, the response can include a partial list // and a caller should only rely on response's - // [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] to determine if - // there are more instances left to be queried. + // [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse.next_page_token] + // to determine if there are more instances left to be queried. int32 page_size = 2; // The `nextPageToken` value returned from a previous - // [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] request, if any. + // [azureNodePools.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools] + // request, if any. string page_token = 3; } // Response message for `AzureClusters.ListAzureNodePools` method. message ListAzureNodePoolsResponse { - // A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources in the specified `AzureCluster`. + // A list of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] + // resources in the specified `AzureCluster`. repeated AzureNodePool azure_node_pools = 1; // Token to retrieve the next page of results, or empty if there are no more @@ -503,9 +556,10 @@ message ListAzureNodePoolsResponse { string next_page_token = 2; } -// Delete message for `AzureClusters.DeleteNodePool` method. +// Delete message for `AzureClusters.DeleteAzureNodePool` method. message DeleteAzureNodePoolRequest { - // Required. The resource name the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. + // Required. The resource name the + // [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete. // // `AzureNodePool` names are formatted as // `projects//locations//azureClusters//azureNodePools/`. @@ -523,14 +577,17 @@ message DeleteAzureNodePoolRequest { // pool. bool validate_only = 2; - // If set to true, and the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is not found, - // the request will succeed but no action will be taken on the server and a - // completed [Operation][google.longrunning.Operation] will be returned. + // If set to true, and the + // [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource is + // not found, the request will succeed but no action will be taken on the + // server and a completed [Operation][google.longrunning.Operation] will be + // returned. // // Useful for idempotent deletion. bool allow_missing = 3; - // The current ETag of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. + // The current ETag of the + // [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. // // Allows clients to perform deletions through optimistic concurrency control. // @@ -541,7 +598,9 @@ message DeleteAzureNodePoolRequest { // GetAzureServerConfigRequest gets the server config of GKE cluster on Azure. message GetAzureServerConfigRequest { - // Required. The name of the [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] resource to describe. + // Required. The name of the + // [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] + // resource to describe. // // `AzureServerConfig` names are formatted as // `projects//locations//azureServerConfig`. @@ -558,8 +617,9 @@ message GetAzureServerConfigRequest { // Request message for `AzureClusters.CreateAzureClient` method. message CreateAzureClientRequest { - // Required. The parent location where this [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource - // will be created. + // Required. The parent location where this + // [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be + // created. // // Location names are formatted as `projects//locations/`. // @@ -572,17 +632,19 @@ message CreateAzureClientRequest { } ]; - // Required. The specification of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. + // Required. The specification of the + // [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create. AzureClient azure_client = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. A client provided ID the resource. Must be unique within the parent - // resource. + // Required. A client provided ID the resource. Must be unique within the + // parent resource. // - // The provided ID will be part of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] - // resource name formatted as + // The provided ID will be part of the + // [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name + // formatted as // `projects//locations//azureClients/`. // - // Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 40 characters. + // Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. string azure_client_id = 4 [(google.api.field_behavior) = REQUIRED]; // If set, only validate the request, but do not actually create the client. @@ -591,9 +653,12 @@ message CreateAzureClientRequest { // Request message for `AzureClusters.GetAzureClient` method. message GetAzureClientRequest { - // Required. The name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to describe. + // Required. The name of the + // [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to + // describe. // - // [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as + // [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + // formatted as // `projects//locations//azureClients/`. // // See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -627,19 +692,20 @@ message ListAzureClientsRequest { // If not specified, a default value of 50 will be used by the service. // Regardless of the pageSize value, the response can include a partial list // and a caller should only rely on response's - // [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] to determine if - // there are more instances left to be queried. + // [nextPageToken][google.cloud.gkemulticloud.v1.ListAzureClientsResponse.next_page_token] + // to determine if there are more instances left to be queried. int32 page_size = 2; // The `nextPageToken` value returned from a previous - // [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] request, if any. + // [azureClients.list][google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients] + // request, if any. string page_token = 3; } // Response message for `AzureClusters.ListAzureClients` method. message ListAzureClientsResponse { - // A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources in the specified Google Cloud - // project and region region. + // A list of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] + // resources in the specified Google Cloud project and region region. repeated AzureClient azure_clients = 1; // Token to retrieve the next page of results, or empty if there are no more @@ -649,9 +715,11 @@ message ListAzureClientsResponse { // Request message for `AzureClusters.DeleteAzureClient` method. message DeleteAzureClientRequest { - // Required. The resource name the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. + // Required. The resource name the + // [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete. // - // [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as + // [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are + // formatted as // `projects//locations//azureClients/`. // // See [Resource Names](https://cloud.google.com/apis/design/resource_names) @@ -663,9 +731,10 @@ message DeleteAzureClientRequest { } ]; - // If set to true, and the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not found, - // the request will succeed but no action will be taken on the server and a - // completed [Operation][google.longrunning.Operation] will be returned. + // If set to true, and the + // [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource is not + // found, the request will succeed but no action will be taken on the server + // and a completed [Operation][google.longrunning.Operation] will be returned. // // Useful for idempotent deletion. bool allow_missing = 2; @@ -676,7 +745,9 @@ message DeleteAzureClientRequest { // Request message for `AzureClusters.GenerateAzureAccessToken` method. message GenerateAzureAccessTokenRequest { - // Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to authenticate to. + // Required. The name of the + // [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to + // authenticate to. // // `AzureCluster` names are formatted as // `projects//locations//AzureClusters/`. @@ -697,5 +768,6 @@ message GenerateAzureAccessTokenResponse { string access_token = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Timestamp at which the token will expire. - google.protobuf.Timestamp expiration_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp expiration_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/proto/google/cloud/gkemulticloud/v1/common_resources.proto b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/proto/google/cloud/gkemulticloud/v1/common_resources.proto index 2a8e1bcd2745..ba34f50b4c5b 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/proto/google/cloud/gkemulticloud/v1/common_resources.proto +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/proto/google/cloud/gkemulticloud/v1/common_resources.proto @@ -49,10 +49,12 @@ message MaxPodsConstraint { // Metadata about a long-running operation. message OperationMetadata { // Output only. The time at which this operation was created. - google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time at which this operation was completed. - google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The name of the resource associated to this operation. string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -60,8 +62,20 @@ message OperationMetadata { // Output only. Human-readable status of the operation, if any. string status_detail = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Human-readable status of any error that occurred during the operation. + // Output only. Human-readable status of any error that occurred during the + // operation. string error_detail = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The verb associated with the API method which triggered this + // operation. Possible values are "create", "delete", "update" and "import". + string verb = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Identifies whether it has been requested cancellation + // for 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`. + bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; } // The taint content for the node taint. @@ -107,13 +121,15 @@ message NodeTaint { // Fleets](https://cloud.google.com/anthos/multicluster-management/fleets) for // more details on Anthos multi-cluster capabilities using Fleets. message Fleet { - // Required. The name of the Fleet host project where this cluster will be registered. + // Required. The name of the Fleet host project where this cluster will be + // registered. // // Project names are formatted as // `projects/`. string project = 1 [(google.api.field_behavior) = REQUIRED]; - // Output only. The name of the managed Hub Membership resource associated to this cluster. + // Output only. The name of the managed Hub Membership resource associated to + // this cluster. // // Membership names are formatted as // `projects//locations/global/membership/`. @@ -143,3 +159,16 @@ message LoggingComponentConfig { // The components to be enabled. repeated Component enable_components = 1; } + +// Parameters that describe the Monitoring configuration in a cluster. +message MonitoringConfig { + // Enable Google Cloud Managed Service for Prometheus in the cluster. + ManagedPrometheusConfig managed_prometheus_config = 2; +} + +// ManagedPrometheusConfig defines the configuration for +// Google Cloud Managed Service for Prometheus. +message ManagedPrometheusConfig { + // Enable Managed Collection. + bool enabled = 1; +} diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/create/SyncCreateSetCredentialsProvider.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..96b127414f97 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.AttachedClustersSettings; +import com.google.cloud.gkemulticloud.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 + AttachedClustersSettings attachedClustersSettings = + AttachedClustersSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + AttachedClustersClient attachedClustersClient = + AttachedClustersClient.create(attachedClustersSettings); + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_Create_SetCredentialsProvider_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/create/SyncCreateSetCredentialsProvider1.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..a55a5748a600 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_Create_SetCredentialsProvider1_sync] +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.AttachedClustersSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AttachedClustersSettings attachedClustersSettings = + AttachedClustersSettings.newHttpJsonBuilder().build(); + AttachedClustersClient attachedClustersClient = + AttachedClustersClient.create(attachedClustersSettings); + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_Create_SetCredentialsProvider1_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/create/SyncCreateSetEndpoint.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..2bb609a3ddc3 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_Create_SetEndpoint_sync] +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.AttachedClustersSettings; +import com.google.cloud.gkemulticloud.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 + AttachedClustersSettings attachedClustersSettings = + AttachedClustersSettings.newBuilder().setEndpoint(myEndpoint).build(); + AttachedClustersClient attachedClustersClient = + AttachedClustersClient.create(attachedClustersSettings); + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_Create_SetEndpoint_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/createattachedcluster/AsyncCreateAttachedCluster.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/createattachedcluster/AsyncCreateAttachedCluster.java new file mode 100644 index 000000000000..9a2b99d21a9f --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/createattachedcluster/AsyncCreateAttachedCluster.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_CreateAttachedCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkemulticloud.v1.AttachedCluster; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest; +import com.google.cloud.gkemulticloud.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateAttachedCluster { + + public static void main(String[] args) throws Exception { + asyncCreateAttachedCluster(); + } + + public static void asyncCreateAttachedCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + CreateAttachedClusterRequest request = + CreateAttachedClusterRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAttachedCluster(AttachedCluster.newBuilder().build()) + .setAttachedClusterId("attachedClusterId865943409") + .setValidateOnly(true) + .build(); + ApiFuture future = + attachedClustersClient.createAttachedClusterCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_CreateAttachedCluster_async] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/createattachedcluster/AsyncCreateAttachedClusterLRO.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/createattachedcluster/AsyncCreateAttachedClusterLRO.java new file mode 100644 index 000000000000..6b5576ccbf73 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/createattachedcluster/AsyncCreateAttachedClusterLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_CreateAttachedCluster_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkemulticloud.v1.AttachedCluster; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest; +import com.google.cloud.gkemulticloud.v1.LocationName; +import com.google.cloud.gkemulticloud.v1.OperationMetadata; + +public class AsyncCreateAttachedClusterLRO { + + public static void main(String[] args) throws Exception { + asyncCreateAttachedClusterLRO(); + } + + public static void asyncCreateAttachedClusterLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + CreateAttachedClusterRequest request = + CreateAttachedClusterRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAttachedCluster(AttachedCluster.newBuilder().build()) + .setAttachedClusterId("attachedClusterId865943409") + .setValidateOnly(true) + .build(); + OperationFuture future = + attachedClustersClient.createAttachedClusterOperationCallable().futureCall(request); + // Do something. + AttachedCluster response = future.get(); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_CreateAttachedCluster_LRO_async] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/createattachedcluster/SyncCreateAttachedCluster.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/createattachedcluster/SyncCreateAttachedCluster.java new file mode 100644 index 000000000000..9ba99c3ac6cb --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/createattachedcluster/SyncCreateAttachedCluster.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_CreateAttachedCluster_sync] +import com.google.cloud.gkemulticloud.v1.AttachedCluster; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest; +import com.google.cloud.gkemulticloud.v1.LocationName; + +public class SyncCreateAttachedCluster { + + public static void main(String[] args) throws Exception { + syncCreateAttachedCluster(); + } + + public static void syncCreateAttachedCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + CreateAttachedClusterRequest request = + CreateAttachedClusterRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAttachedCluster(AttachedCluster.newBuilder().build()) + .setAttachedClusterId("attachedClusterId865943409") + .setValidateOnly(true) + .build(); + AttachedCluster response = attachedClustersClient.createAttachedClusterAsync(request).get(); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_CreateAttachedCluster_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/createattachedcluster/SyncCreateAttachedClusterLocationnameAttachedclusterString.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/createattachedcluster/SyncCreateAttachedClusterLocationnameAttachedclusterString.java new file mode 100644 index 000000000000..09169fcaaa8f --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/createattachedcluster/SyncCreateAttachedClusterLocationnameAttachedclusterString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_CreateAttachedCluster_LocationnameAttachedclusterString_sync] +import com.google.cloud.gkemulticloud.v1.AttachedCluster; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.LocationName; + +public class SyncCreateAttachedClusterLocationnameAttachedclusterString { + + public static void main(String[] args) throws Exception { + syncCreateAttachedClusterLocationnameAttachedclusterString(); + } + + public static void syncCreateAttachedClusterLocationnameAttachedclusterString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AttachedCluster attachedCluster = AttachedCluster.newBuilder().build(); + String attachedClusterId = "attachedClusterId865943409"; + AttachedCluster response = + attachedClustersClient + .createAttachedClusterAsync(parent, attachedCluster, attachedClusterId) + .get(); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_CreateAttachedCluster_LocationnameAttachedclusterString_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/createattachedcluster/SyncCreateAttachedClusterStringAttachedclusterString.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/createattachedcluster/SyncCreateAttachedClusterStringAttachedclusterString.java new file mode 100644 index 000000000000..deae2f8aff44 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/createattachedcluster/SyncCreateAttachedClusterStringAttachedclusterString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_CreateAttachedCluster_StringAttachedclusterString_sync] +import com.google.cloud.gkemulticloud.v1.AttachedCluster; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.LocationName; + +public class SyncCreateAttachedClusterStringAttachedclusterString { + + public static void main(String[] args) throws Exception { + syncCreateAttachedClusterStringAttachedclusterString(); + } + + public static void syncCreateAttachedClusterStringAttachedclusterString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + AttachedCluster attachedCluster = AttachedCluster.newBuilder().build(); + String attachedClusterId = "attachedClusterId865943409"; + AttachedCluster response = + attachedClustersClient + .createAttachedClusterAsync(parent, attachedCluster, attachedClusterId) + .get(); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_CreateAttachedCluster_StringAttachedclusterString_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/deleteattachedcluster/AsyncDeleteAttachedCluster.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/deleteattachedcluster/AsyncDeleteAttachedCluster.java new file mode 100644 index 000000000000..3a4780fa98e0 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/deleteattachedcluster/AsyncDeleteAttachedCluster.java @@ -0,0 +1,56 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_DeleteAttachedCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkemulticloud.v1.AttachedClusterName; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest; +import com.google.longrunning.Operation; + +public class AsyncDeleteAttachedCluster { + + public static void main(String[] args) throws Exception { + asyncDeleteAttachedCluster(); + } + + public static void asyncDeleteAttachedCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + DeleteAttachedClusterRequest request = + DeleteAttachedClusterRequest.newBuilder() + .setName( + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]") + .toString()) + .setValidateOnly(true) + .setAllowMissing(true) + .setIgnoreErrors(true) + .setEtag("etag3123477") + .build(); + ApiFuture future = + attachedClustersClient.deleteAttachedClusterCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_DeleteAttachedCluster_async] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/deleteattachedcluster/AsyncDeleteAttachedClusterLRO.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/deleteattachedcluster/AsyncDeleteAttachedClusterLRO.java new file mode 100644 index 000000000000..59829defebc3 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/deleteattachedcluster/AsyncDeleteAttachedClusterLRO.java @@ -0,0 +1,57 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_DeleteAttachedCluster_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkemulticloud.v1.AttachedClusterName; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest; +import com.google.cloud.gkemulticloud.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteAttachedClusterLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteAttachedClusterLRO(); + } + + public static void asyncDeleteAttachedClusterLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + DeleteAttachedClusterRequest request = + DeleteAttachedClusterRequest.newBuilder() + .setName( + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]") + .toString()) + .setValidateOnly(true) + .setAllowMissing(true) + .setIgnoreErrors(true) + .setEtag("etag3123477") + .build(); + OperationFuture future = + attachedClustersClient.deleteAttachedClusterOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_DeleteAttachedCluster_LRO_async] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/deleteattachedcluster/SyncDeleteAttachedCluster.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/deleteattachedcluster/SyncDeleteAttachedCluster.java new file mode 100644 index 000000000000..f24a6873bb5a --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/deleteattachedcluster/SyncDeleteAttachedCluster.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_DeleteAttachedCluster_sync] +import com.google.cloud.gkemulticloud.v1.AttachedClusterName; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteAttachedCluster { + + public static void main(String[] args) throws Exception { + syncDeleteAttachedCluster(); + } + + public static void syncDeleteAttachedCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + DeleteAttachedClusterRequest request = + DeleteAttachedClusterRequest.newBuilder() + .setName( + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]") + .toString()) + .setValidateOnly(true) + .setAllowMissing(true) + .setIgnoreErrors(true) + .setEtag("etag3123477") + .build(); + attachedClustersClient.deleteAttachedClusterAsync(request).get(); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_DeleteAttachedCluster_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/deleteattachedcluster/SyncDeleteAttachedClusterAttachedclustername.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/deleteattachedcluster/SyncDeleteAttachedClusterAttachedclustername.java new file mode 100644 index 000000000000..3b5a239750e3 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/deleteattachedcluster/SyncDeleteAttachedClusterAttachedclustername.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_DeleteAttachedCluster_Attachedclustername_sync] +import com.google.cloud.gkemulticloud.v1.AttachedClusterName; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAttachedClusterAttachedclustername { + + public static void main(String[] args) throws Exception { + syncDeleteAttachedClusterAttachedclustername(); + } + + public static void syncDeleteAttachedClusterAttachedclustername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + AttachedClusterName name = + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]"); + attachedClustersClient.deleteAttachedClusterAsync(name).get(); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_DeleteAttachedCluster_Attachedclustername_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/deleteattachedcluster/SyncDeleteAttachedClusterString.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/deleteattachedcluster/SyncDeleteAttachedClusterString.java new file mode 100644 index 000000000000..3f8cdef4b519 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/deleteattachedcluster/SyncDeleteAttachedClusterString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_DeleteAttachedCluster_String_sync] +import com.google.cloud.gkemulticloud.v1.AttachedClusterName; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAttachedClusterString { + + public static void main(String[] args) throws Exception { + syncDeleteAttachedClusterString(); + } + + public static void syncDeleteAttachedClusterString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + String name = + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]").toString(); + attachedClustersClient.deleteAttachedClusterAsync(name).get(); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_DeleteAttachedCluster_String_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/generateattachedclusterinstallmanifest/AsyncGenerateAttachedClusterInstallManifest.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/generateattachedclusterinstallmanifest/AsyncGenerateAttachedClusterInstallManifest.java new file mode 100644 index 000000000000..5f58653142b4 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/generateattachedclusterinstallmanifest/AsyncGenerateAttachedClusterInstallManifest.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_GenerateAttachedClusterInstallManifest_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest; +import com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse; +import com.google.cloud.gkemulticloud.v1.LocationName; + +public class AsyncGenerateAttachedClusterInstallManifest { + + public static void main(String[] args) throws Exception { + asyncGenerateAttachedClusterInstallManifest(); + } + + public static void asyncGenerateAttachedClusterInstallManifest() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + GenerateAttachedClusterInstallManifestRequest request = + GenerateAttachedClusterInstallManifestRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAttachedClusterId("attachedClusterId865943409") + .setPlatformVersion("platformVersion1848800485") + .build(); + ApiFuture future = + attachedClustersClient + .generateAttachedClusterInstallManifestCallable() + .futureCall(request); + // Do something. + GenerateAttachedClusterInstallManifestResponse response = future.get(); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_GenerateAttachedClusterInstallManifest_async] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/generateattachedclusterinstallmanifest/SyncGenerateAttachedClusterInstallManifest.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/generateattachedclusterinstallmanifest/SyncGenerateAttachedClusterInstallManifest.java new file mode 100644 index 000000000000..0ccde492afe7 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/generateattachedclusterinstallmanifest/SyncGenerateAttachedClusterInstallManifest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_GenerateAttachedClusterInstallManifest_sync] +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest; +import com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse; +import com.google.cloud.gkemulticloud.v1.LocationName; + +public class SyncGenerateAttachedClusterInstallManifest { + + public static void main(String[] args) throws Exception { + syncGenerateAttachedClusterInstallManifest(); + } + + public static void syncGenerateAttachedClusterInstallManifest() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + GenerateAttachedClusterInstallManifestRequest request = + GenerateAttachedClusterInstallManifestRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAttachedClusterId("attachedClusterId865943409") + .setPlatformVersion("platformVersion1848800485") + .build(); + GenerateAttachedClusterInstallManifestResponse response = + attachedClustersClient.generateAttachedClusterInstallManifest(request); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_GenerateAttachedClusterInstallManifest_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/generateattachedclusterinstallmanifest/SyncGenerateAttachedClusterInstallManifestLocationnameString.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/generateattachedclusterinstallmanifest/SyncGenerateAttachedClusterInstallManifestLocationnameString.java new file mode 100644 index 000000000000..7b561f76c1dc --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/generateattachedclusterinstallmanifest/SyncGenerateAttachedClusterInstallManifestLocationnameString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_GenerateAttachedClusterInstallManifest_LocationnameString_sync] +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse; +import com.google.cloud.gkemulticloud.v1.LocationName; + +public class SyncGenerateAttachedClusterInstallManifestLocationnameString { + + public static void main(String[] args) throws Exception { + syncGenerateAttachedClusterInstallManifestLocationnameString(); + } + + public static void syncGenerateAttachedClusterInstallManifestLocationnameString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String attachedClusterId = "attachedClusterId865943409"; + GenerateAttachedClusterInstallManifestResponse response = + attachedClustersClient.generateAttachedClusterInstallManifest(parent, attachedClusterId); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_GenerateAttachedClusterInstallManifest_LocationnameString_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/generateattachedclusterinstallmanifest/SyncGenerateAttachedClusterInstallManifestStringString.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/generateattachedclusterinstallmanifest/SyncGenerateAttachedClusterInstallManifestStringString.java new file mode 100644 index 000000000000..6f0290e62db2 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/generateattachedclusterinstallmanifest/SyncGenerateAttachedClusterInstallManifestStringString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_GenerateAttachedClusterInstallManifest_StringString_sync] +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse; +import com.google.cloud.gkemulticloud.v1.LocationName; + +public class SyncGenerateAttachedClusterInstallManifestStringString { + + public static void main(String[] args) throws Exception { + syncGenerateAttachedClusterInstallManifestStringString(); + } + + public static void syncGenerateAttachedClusterInstallManifestStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + String attachedClusterId = "attachedClusterId865943409"; + GenerateAttachedClusterInstallManifestResponse response = + attachedClustersClient.generateAttachedClusterInstallManifest(parent, attachedClusterId); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_GenerateAttachedClusterInstallManifest_StringString_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/getattachedcluster/AsyncGetAttachedCluster.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/getattachedcluster/AsyncGetAttachedCluster.java new file mode 100644 index 000000000000..c5894fbfbd45 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/getattachedcluster/AsyncGetAttachedCluster.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_GetAttachedCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkemulticloud.v1.AttachedCluster; +import com.google.cloud.gkemulticloud.v1.AttachedClusterName; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest; + +public class AsyncGetAttachedCluster { + + public static void main(String[] args) throws Exception { + asyncGetAttachedCluster(); + } + + public static void asyncGetAttachedCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + GetAttachedClusterRequest request = + GetAttachedClusterRequest.newBuilder() + .setName( + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]") + .toString()) + .build(); + ApiFuture future = + attachedClustersClient.getAttachedClusterCallable().futureCall(request); + // Do something. + AttachedCluster response = future.get(); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_GetAttachedCluster_async] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/getattachedcluster/SyncGetAttachedCluster.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/getattachedcluster/SyncGetAttachedCluster.java new file mode 100644 index 000000000000..56c09324eed8 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/getattachedcluster/SyncGetAttachedCluster.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_GetAttachedCluster_sync] +import com.google.cloud.gkemulticloud.v1.AttachedCluster; +import com.google.cloud.gkemulticloud.v1.AttachedClusterName; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest; + +public class SyncGetAttachedCluster { + + public static void main(String[] args) throws Exception { + syncGetAttachedCluster(); + } + + public static void syncGetAttachedCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + GetAttachedClusterRequest request = + GetAttachedClusterRequest.newBuilder() + .setName( + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]") + .toString()) + .build(); + AttachedCluster response = attachedClustersClient.getAttachedCluster(request); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_GetAttachedCluster_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/getattachedcluster/SyncGetAttachedClusterAttachedclustername.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/getattachedcluster/SyncGetAttachedClusterAttachedclustername.java new file mode 100644 index 000000000000..d1f309751af0 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/getattachedcluster/SyncGetAttachedClusterAttachedclustername.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_GetAttachedCluster_Attachedclustername_sync] +import com.google.cloud.gkemulticloud.v1.AttachedCluster; +import com.google.cloud.gkemulticloud.v1.AttachedClusterName; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; + +public class SyncGetAttachedClusterAttachedclustername { + + public static void main(String[] args) throws Exception { + syncGetAttachedClusterAttachedclustername(); + } + + public static void syncGetAttachedClusterAttachedclustername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + AttachedClusterName name = + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]"); + AttachedCluster response = attachedClustersClient.getAttachedCluster(name); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_GetAttachedCluster_Attachedclustername_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/getattachedcluster/SyncGetAttachedClusterString.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/getattachedcluster/SyncGetAttachedClusterString.java new file mode 100644 index 000000000000..f7ab6ca7da47 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/getattachedcluster/SyncGetAttachedClusterString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_GetAttachedCluster_String_sync] +import com.google.cloud.gkemulticloud.v1.AttachedCluster; +import com.google.cloud.gkemulticloud.v1.AttachedClusterName; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; + +public class SyncGetAttachedClusterString { + + public static void main(String[] args) throws Exception { + syncGetAttachedClusterString(); + } + + public static void syncGetAttachedClusterString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + String name = + AttachedClusterName.of("[PROJECT]", "[LOCATION]", "[ATTACHED_CLUSTER]").toString(); + AttachedCluster response = attachedClustersClient.getAttachedCluster(name); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_GetAttachedCluster_String_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/getattachedserverconfig/AsyncGetAttachedServerConfig.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/getattachedserverconfig/AsyncGetAttachedServerConfig.java new file mode 100644 index 000000000000..214bea8f9077 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/getattachedserverconfig/AsyncGetAttachedServerConfig.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_GetAttachedServerConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.AttachedServerConfig; +import com.google.cloud.gkemulticloud.v1.AttachedServerConfigName; +import com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest; + +public class AsyncGetAttachedServerConfig { + + public static void main(String[] args) throws Exception { + asyncGetAttachedServerConfig(); + } + + public static void asyncGetAttachedServerConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + GetAttachedServerConfigRequest request = + GetAttachedServerConfigRequest.newBuilder() + .setName(AttachedServerConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + ApiFuture future = + attachedClustersClient.getAttachedServerConfigCallable().futureCall(request); + // Do something. + AttachedServerConfig response = future.get(); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_GetAttachedServerConfig_async] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/getattachedserverconfig/SyncGetAttachedServerConfig.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/getattachedserverconfig/SyncGetAttachedServerConfig.java new file mode 100644 index 000000000000..15d725f0866d --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/getattachedserverconfig/SyncGetAttachedServerConfig.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_GetAttachedServerConfig_sync] +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.AttachedServerConfig; +import com.google.cloud.gkemulticloud.v1.AttachedServerConfigName; +import com.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest; + +public class SyncGetAttachedServerConfig { + + public static void main(String[] args) throws Exception { + syncGetAttachedServerConfig(); + } + + public static void syncGetAttachedServerConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + GetAttachedServerConfigRequest request = + GetAttachedServerConfigRequest.newBuilder() + .setName(AttachedServerConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + AttachedServerConfig response = attachedClustersClient.getAttachedServerConfig(request); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_GetAttachedServerConfig_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/getattachedserverconfig/SyncGetAttachedServerConfigAttachedserverconfigname.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/getattachedserverconfig/SyncGetAttachedServerConfigAttachedserverconfigname.java new file mode 100644 index 000000000000..93483a535914 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/getattachedserverconfig/SyncGetAttachedServerConfigAttachedserverconfigname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_GetAttachedServerConfig_Attachedserverconfigname_sync] +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.AttachedServerConfig; +import com.google.cloud.gkemulticloud.v1.AttachedServerConfigName; + +public class SyncGetAttachedServerConfigAttachedserverconfigname { + + public static void main(String[] args) throws Exception { + syncGetAttachedServerConfigAttachedserverconfigname(); + } + + public static void syncGetAttachedServerConfigAttachedserverconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + AttachedServerConfigName name = AttachedServerConfigName.of("[PROJECT]", "[LOCATION]"); + AttachedServerConfig response = attachedClustersClient.getAttachedServerConfig(name); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_GetAttachedServerConfig_Attachedserverconfigname_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/getattachedserverconfig/SyncGetAttachedServerConfigString.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/getattachedserverconfig/SyncGetAttachedServerConfigString.java new file mode 100644 index 000000000000..97b835ca66e1 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/getattachedserverconfig/SyncGetAttachedServerConfigString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_GetAttachedServerConfig_String_sync] +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.AttachedServerConfig; +import com.google.cloud.gkemulticloud.v1.AttachedServerConfigName; + +public class SyncGetAttachedServerConfigString { + + public static void main(String[] args) throws Exception { + syncGetAttachedServerConfigString(); + } + + public static void syncGetAttachedServerConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + String name = AttachedServerConfigName.of("[PROJECT]", "[LOCATION]").toString(); + AttachedServerConfig response = attachedClustersClient.getAttachedServerConfig(name); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_GetAttachedServerConfig_String_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/importattachedcluster/AsyncImportAttachedCluster.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/importattachedcluster/AsyncImportAttachedCluster.java new file mode 100644 index 000000000000..fdfb8708c8c0 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/importattachedcluster/AsyncImportAttachedCluster.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_ImportAttachedCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest; +import com.google.cloud.gkemulticloud.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncImportAttachedCluster { + + public static void main(String[] args) throws Exception { + asyncImportAttachedCluster(); + } + + public static void asyncImportAttachedCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + ImportAttachedClusterRequest request = + ImportAttachedClusterRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setValidateOnly(true) + .setFleetMembership("fleetMembership-665479228") + .setPlatformVersion("platformVersion1848800485") + .setDistribution("distribution-1580708220") + .build(); + ApiFuture future = + attachedClustersClient.importAttachedClusterCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_ImportAttachedCluster_async] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/importattachedcluster/AsyncImportAttachedClusterLRO.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/importattachedcluster/AsyncImportAttachedClusterLRO.java new file mode 100644 index 000000000000..cb6d8a985de4 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/importattachedcluster/AsyncImportAttachedClusterLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_ImportAttachedCluster_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkemulticloud.v1.AttachedCluster; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest; +import com.google.cloud.gkemulticloud.v1.LocationName; +import com.google.cloud.gkemulticloud.v1.OperationMetadata; + +public class AsyncImportAttachedClusterLRO { + + public static void main(String[] args) throws Exception { + asyncImportAttachedClusterLRO(); + } + + public static void asyncImportAttachedClusterLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + ImportAttachedClusterRequest request = + ImportAttachedClusterRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setValidateOnly(true) + .setFleetMembership("fleetMembership-665479228") + .setPlatformVersion("platformVersion1848800485") + .setDistribution("distribution-1580708220") + .build(); + OperationFuture future = + attachedClustersClient.importAttachedClusterOperationCallable().futureCall(request); + // Do something. + AttachedCluster response = future.get(); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_ImportAttachedCluster_LRO_async] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/importattachedcluster/SyncImportAttachedCluster.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/importattachedcluster/SyncImportAttachedCluster.java new file mode 100644 index 000000000000..17201933e811 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/importattachedcluster/SyncImportAttachedCluster.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_ImportAttachedCluster_sync] +import com.google.cloud.gkemulticloud.v1.AttachedCluster; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest; +import com.google.cloud.gkemulticloud.v1.LocationName; + +public class SyncImportAttachedCluster { + + public static void main(String[] args) throws Exception { + syncImportAttachedCluster(); + } + + public static void syncImportAttachedCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + ImportAttachedClusterRequest request = + ImportAttachedClusterRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setValidateOnly(true) + .setFleetMembership("fleetMembership-665479228") + .setPlatformVersion("platformVersion1848800485") + .setDistribution("distribution-1580708220") + .build(); + AttachedCluster response = attachedClustersClient.importAttachedClusterAsync(request).get(); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_ImportAttachedCluster_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/importattachedcluster/SyncImportAttachedClusterLocationnameString.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/importattachedcluster/SyncImportAttachedClusterLocationnameString.java new file mode 100644 index 000000000000..8c6565a390ba --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/importattachedcluster/SyncImportAttachedClusterLocationnameString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_ImportAttachedCluster_LocationnameString_sync] +import com.google.cloud.gkemulticloud.v1.AttachedCluster; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.LocationName; + +public class SyncImportAttachedClusterLocationnameString { + + public static void main(String[] args) throws Exception { + syncImportAttachedClusterLocationnameString(); + } + + public static void syncImportAttachedClusterLocationnameString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String fleetMembership = "fleetMembership-665479228"; + AttachedCluster response = + attachedClustersClient.importAttachedClusterAsync(parent, fleetMembership).get(); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_ImportAttachedCluster_LocationnameString_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/importattachedcluster/SyncImportAttachedClusterStringString.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/importattachedcluster/SyncImportAttachedClusterStringString.java new file mode 100644 index 000000000000..892e2389cd03 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/importattachedcluster/SyncImportAttachedClusterStringString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_ImportAttachedCluster_StringString_sync] +import com.google.cloud.gkemulticloud.v1.AttachedCluster; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.LocationName; + +public class SyncImportAttachedClusterStringString { + + public static void main(String[] args) throws Exception { + syncImportAttachedClusterStringString(); + } + + public static void syncImportAttachedClusterStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + String fleetMembership = "fleetMembership-665479228"; + AttachedCluster response = + attachedClustersClient.importAttachedClusterAsync(parent, fleetMembership).get(); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_ImportAttachedCluster_StringString_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/listattachedclusters/AsyncListAttachedClusters.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/listattachedclusters/AsyncListAttachedClusters.java new file mode 100644 index 000000000000..8df934b781e3 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/listattachedclusters/AsyncListAttachedClusters.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_ListAttachedClusters_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkemulticloud.v1.AttachedCluster; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest; +import com.google.cloud.gkemulticloud.v1.LocationName; + +public class AsyncListAttachedClusters { + + public static void main(String[] args) throws Exception { + asyncListAttachedClusters(); + } + + public static void asyncListAttachedClusters() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + ListAttachedClustersRequest request = + ListAttachedClustersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + attachedClustersClient.listAttachedClustersPagedCallable().futureCall(request); + // Do something. + for (AttachedCluster element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_ListAttachedClusters_async] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/listattachedclusters/AsyncListAttachedClustersPaged.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/listattachedclusters/AsyncListAttachedClustersPaged.java new file mode 100644 index 000000000000..c52755607d46 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/listattachedclusters/AsyncListAttachedClustersPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_ListAttachedClusters_Paged_async] +import com.google.cloud.gkemulticloud.v1.AttachedCluster; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest; +import com.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse; +import com.google.cloud.gkemulticloud.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListAttachedClustersPaged { + + public static void main(String[] args) throws Exception { + asyncListAttachedClustersPaged(); + } + + public static void asyncListAttachedClustersPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + ListAttachedClustersRequest request = + ListAttachedClustersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListAttachedClustersResponse response = + attachedClustersClient.listAttachedClustersCallable().call(request); + for (AttachedCluster element : response.getAttachedClustersList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_ListAttachedClusters_Paged_async] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/listattachedclusters/SyncListAttachedClusters.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/listattachedclusters/SyncListAttachedClusters.java new file mode 100644 index 000000000000..78d99a001762 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/listattachedclusters/SyncListAttachedClusters.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_ListAttachedClusters_sync] +import com.google.cloud.gkemulticloud.v1.AttachedCluster; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest; +import com.google.cloud.gkemulticloud.v1.LocationName; + +public class SyncListAttachedClusters { + + public static void main(String[] args) throws Exception { + syncListAttachedClusters(); + } + + public static void syncListAttachedClusters() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + ListAttachedClustersRequest request = + ListAttachedClustersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (AttachedCluster element : + attachedClustersClient.listAttachedClusters(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_ListAttachedClusters_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/listattachedclusters/SyncListAttachedClustersLocationname.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/listattachedclusters/SyncListAttachedClustersLocationname.java new file mode 100644 index 000000000000..0f6ae4c7a94a --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/listattachedclusters/SyncListAttachedClustersLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_ListAttachedClusters_Locationname_sync] +import com.google.cloud.gkemulticloud.v1.AttachedCluster; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.LocationName; + +public class SyncListAttachedClustersLocationname { + + public static void main(String[] args) throws Exception { + syncListAttachedClustersLocationname(); + } + + public static void syncListAttachedClustersLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (AttachedCluster element : + attachedClustersClient.listAttachedClusters(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_ListAttachedClusters_Locationname_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/listattachedclusters/SyncListAttachedClustersString.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/listattachedclusters/SyncListAttachedClustersString.java new file mode 100644 index 000000000000..7005f19ca577 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/listattachedclusters/SyncListAttachedClustersString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_ListAttachedClusters_String_sync] +import com.google.cloud.gkemulticloud.v1.AttachedCluster; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.LocationName; + +public class SyncListAttachedClustersString { + + public static void main(String[] args) throws Exception { + syncListAttachedClustersString(); + } + + public static void syncListAttachedClustersString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (AttachedCluster element : + attachedClustersClient.listAttachedClusters(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_ListAttachedClusters_String_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/updateattachedcluster/AsyncUpdateAttachedCluster.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/updateattachedcluster/AsyncUpdateAttachedCluster.java new file mode 100644 index 000000000000..6ca0536c7927 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/updateattachedcluster/AsyncUpdateAttachedCluster.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_UpdateAttachedCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkemulticloud.v1.AttachedCluster; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAttachedCluster { + + public static void main(String[] args) throws Exception { + asyncUpdateAttachedCluster(); + } + + public static void asyncUpdateAttachedCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + UpdateAttachedClusterRequest request = + UpdateAttachedClusterRequest.newBuilder() + .setAttachedCluster(AttachedCluster.newBuilder().build()) + .setValidateOnly(true) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + attachedClustersClient.updateAttachedClusterCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_UpdateAttachedCluster_async] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/updateattachedcluster/AsyncUpdateAttachedClusterLRO.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/updateattachedcluster/AsyncUpdateAttachedClusterLRO.java new file mode 100644 index 000000000000..5a2b416c390c --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/updateattachedcluster/AsyncUpdateAttachedClusterLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_UpdateAttachedCluster_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkemulticloud.v1.AttachedCluster; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.OperationMetadata; +import com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAttachedClusterLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateAttachedClusterLRO(); + } + + public static void asyncUpdateAttachedClusterLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + UpdateAttachedClusterRequest request = + UpdateAttachedClusterRequest.newBuilder() + .setAttachedCluster(AttachedCluster.newBuilder().build()) + .setValidateOnly(true) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + attachedClustersClient.updateAttachedClusterOperationCallable().futureCall(request); + // Do something. + AttachedCluster response = future.get(); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_UpdateAttachedCluster_LRO_async] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/updateattachedcluster/SyncUpdateAttachedCluster.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/updateattachedcluster/SyncUpdateAttachedCluster.java new file mode 100644 index 000000000000..6437017accfd --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/updateattachedcluster/SyncUpdateAttachedCluster.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_UpdateAttachedCluster_sync] +import com.google.cloud.gkemulticloud.v1.AttachedCluster; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAttachedCluster { + + public static void main(String[] args) throws Exception { + syncUpdateAttachedCluster(); + } + + public static void syncUpdateAttachedCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + UpdateAttachedClusterRequest request = + UpdateAttachedClusterRequest.newBuilder() + .setAttachedCluster(AttachedCluster.newBuilder().build()) + .setValidateOnly(true) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + AttachedCluster response = attachedClustersClient.updateAttachedClusterAsync(request).get(); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_UpdateAttachedCluster_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/updateattachedcluster/SyncUpdateAttachedClusterAttachedclusterFieldmask.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/updateattachedcluster/SyncUpdateAttachedClusterAttachedclusterFieldmask.java new file mode 100644 index 000000000000..abc697eaad5b --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusters/updateattachedcluster/SyncUpdateAttachedClusterAttachedclusterFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClusters_UpdateAttachedCluster_AttachedclusterFieldmask_sync] +import com.google.cloud.gkemulticloud.v1.AttachedCluster; +import com.google.cloud.gkemulticloud.v1.AttachedClustersClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAttachedClusterAttachedclusterFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateAttachedClusterAttachedclusterFieldmask(); + } + + public static void syncUpdateAttachedClusterAttachedclusterFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AttachedClustersClient attachedClustersClient = AttachedClustersClient.create()) { + AttachedCluster attachedCluster = AttachedCluster.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + AttachedCluster response = + attachedClustersClient.updateAttachedClusterAsync(attachedCluster, updateMask).get(); + } + } +} +// [END gkemulticloud_v1_generated_AttachedClusters_UpdateAttachedCluster_AttachedclusterFieldmask_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusterssettings/getattachedcluster/SyncGetAttachedCluster.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusterssettings/getattachedcluster/SyncGetAttachedCluster.java new file mode 100644 index 000000000000..47500bd61072 --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/attachedclusterssettings/getattachedcluster/SyncGetAttachedCluster.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.samples; + +// [START gkemulticloud_v1_generated_AttachedClustersSettings_GetAttachedCluster_sync] +import com.google.cloud.gkemulticloud.v1.AttachedClustersSettings; +import java.time.Duration; + +public class SyncGetAttachedCluster { + + public static void main(String[] args) throws Exception { + syncGetAttachedCluster(); + } + + public static void syncGetAttachedCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AttachedClustersSettings.Builder attachedClustersSettingsBuilder = + AttachedClustersSettings.newBuilder(); + attachedClustersSettingsBuilder + .getAttachedClusterSettings() + .setRetrySettings( + attachedClustersSettingsBuilder + .getAttachedClusterSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + AttachedClustersSettings attachedClustersSettings = attachedClustersSettingsBuilder.build(); + } +} +// [END gkemulticloud_v1_generated_AttachedClustersSettings_GetAttachedCluster_sync] diff --git a/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/stub/attachedclustersstubsettings/getattachedcluster/SyncGetAttachedCluster.java b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/stub/attachedclustersstubsettings/getattachedcluster/SyncGetAttachedCluster.java new file mode 100644 index 000000000000..41b894b2236b --- /dev/null +++ b/java-gke-multi-cloud/samples/snippets/generated/com/google/cloud/gkemulticloud/v1/stub/attachedclustersstubsettings/getattachedcluster/SyncGetAttachedCluster.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkemulticloud.v1.stub.samples; + +// [START gkemulticloud_v1_generated_AttachedClustersStubSettings_GetAttachedCluster_sync] +import com.google.cloud.gkemulticloud.v1.stub.AttachedClustersStubSettings; +import java.time.Duration; + +public class SyncGetAttachedCluster { + + public static void main(String[] args) throws Exception { + syncGetAttachedCluster(); + } + + public static void syncGetAttachedCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AttachedClustersStubSettings.Builder attachedClustersSettingsBuilder = + AttachedClustersStubSettings.newBuilder(); + attachedClustersSettingsBuilder + .getAttachedClusterSettings() + .setRetrySettings( + attachedClustersSettingsBuilder + .getAttachedClusterSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + AttachedClustersStubSettings attachedClustersSettings = attachedClustersSettingsBuilder.build(); + } +} +// [END gkemulticloud_v1_generated_AttachedClustersStubSettings_GetAttachedCluster_sync]