diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java index 9c6429e2..ecbb7d60 100644 --- a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java +++ b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java @@ -41,8 +41,15 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * Service Description: GKE Hub CRUD API for the Membership resource. The Membership service is - * currently only available in the global location. + * Service Description: The GKE Hub service handles the registration of many Kubernetes clusters to + * Google Cloud, represented with the [Membership][google.cloud.gkehub.v1alpha2.Membership] + * resource. + * + *
GKE Hub is currently only available in the global region. + * + *
**Membership management may be non-trivial:** it is recommended to use one of + * the Google-provided client libraries or tools where possible when working with Membership + * resources. * *
This class provides the ability to make remote calls to the backing service through method
* calls that map to API methods. Sample code to get started:
@@ -400,7 +407,11 @@ public final UnaryCallable **This is currently only supported for GKE clusters on Google Cloud**. To
+ * register other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
*
* Sample code:
*
@@ -438,7 +449,11 @@ public final OperationFuture **This is currently only supported for GKE clusters on Google Cloud**. To
+ * register other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
*
* Sample code:
*
@@ -476,7 +491,11 @@ public final OperationFuture **This is currently only supported for GKE clusters on Google Cloud**. To
+ * register other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
*
* Sample code:
*
@@ -502,7 +521,11 @@ public final OperationFuture **This is currently only supported for GKE clusters on Google Cloud**. To
+ * register other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
*
* Sample code:
*
@@ -528,7 +551,11 @@ public final OperationFuture **This is currently only supported for GKE clusters on Google Cloud**. To
+ * register other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
*
* Sample code:
*
@@ -554,6 +581,10 @@ public final UnaryCallable **This is currently only supported for GKE clusters on Google Cloud**. To
+ * unregister other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+ *
* Sample code:
*
* **This is currently only supported for GKE clusters on Google Cloud**. To
+ * unregister other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+ *
* Sample code:
*
* **This is currently only supported for GKE clusters on Google Cloud**. To
+ * unregister other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+ *
* Sample code:
*
* **This is currently only supported for GKE clusters on Google Cloud**. To
+ * unregister other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+ *
* Sample code:
*
* **This is currently only supported for GKE clusters on Google Cloud**. To
+ * unregister other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+ *
* Sample code:
*
* **This method is used internally by Google-provided libraries.** Most
+ * clients should not need to call this method directly.
+ *
* Sample code:
*
* **This method is used internally by Google-provided libraries.** Most
+ * clients should not need to call this method directly.
+ *
* Sample code:
*
* The interfaces provided are listed below, along with usage samples.
*
* ======================= GkeHubClient =======================
*
- * Service Description: GKE Hub CRUD API for the Membership resource. The Membership service is
- * currently only available in the global location.
+ * Service Description: The GKE Hub service handles the registration of many Kubernetes clusters
+ * to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1alpha2.Membership]
+ * resource.
+ *
+ * GKE Hub is currently only available in the global region.
+ *
+ * **Membership management may be non-trivial:** it is recommended to use one of
+ * the Google-provided client libraries or tools where possible when working with Membership
+ * resources.
*
* Sample for GkeHubClient:
*
diff --git a/grpc-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubGrpc.java b/grpc-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubGrpc.java
index 8c7aa7a0..52cd48fb 100644
--- a/grpc-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubGrpc.java
+++ b/grpc-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubGrpc.java
@@ -21,8 +21,12 @@
*
*
* {@code
@@ -578,6 +609,10 @@ public final OperationFuture
*
* {@code
@@ -600,6 +635,10 @@ public final OperationFuture
*
* {@code
@@ -624,6 +663,10 @@ public final OperationFuture
*
* {@code
@@ -648,6 +691,10 @@ public final OperationFuture
*
* {@code
@@ -686,7 +733,9 @@ public final UnaryCallable
*
* {@code
@@ -811,6 +863,9 @@ public final GenerateConnectManifestResponse generateConnectManifest(
/**
* Generates the manifest for deployment of the GKE connect agent.
*
+ *
*
* {@code
diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/package-info.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/package-info.java
index cf144dc0..f6948e53 100644
--- a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/package-info.java
+++ b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/package-info.java
@@ -15,12 +15,21 @@
*/
/**
- * The interfaces provided are listed below, along with usage samples.
+ * A client to GKE Hub API
+ *
+ *
*
*
- * GKE Hub CRUD API for the Membership resource.
- * The Membership service is currently only available in the global location.
+ * The GKE Hub service handles the registration of many Kubernetes
+ * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1alpha2.Membership] resource.
+ * GKE Hub is currently only available in the global region.
+ * **Membership management may be non-trivial:** it is recommended to use one
+ * of the Google-provided client libraries or tools where possible when working
+ * with Membership resources.
*
*/
@javax.annotation.Generated(
@@ -400,8 +404,12 @@ public GkeHubFutureStub newStub(
*
*
*
- * GKE Hub CRUD API for the Membership resource.
- * The Membership service is currently only available in the global location.
+ * The GKE Hub service handles the registration of many Kubernetes
+ * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1alpha2.Membership] resource.
+ * GKE Hub is currently only available in the global region.
+ * **Membership management may be non-trivial:** it is recommended to use one
+ * of the Google-provided client libraries or tools where possible when working
+ * with Membership resources.
*
*/
public abstract static class GkeHubImplBase implements io.grpc.BindableService {
@@ -439,7 +447,10 @@ public void getMembership(
*
*
*
- * Adds a new Membership.
+ * Creates a new Membership.
+ * **This is currently only supported for GKE clusters on Google Cloud**.
+ * To register other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
*
*/
public void createMembership(
@@ -454,6 +465,9 @@ public void createMembership(
*
*
* Removes a Membership.
+ * **This is currently only supported for GKE clusters on Google Cloud**.
+ * To unregister other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
*
*/
public void deleteMembership(
@@ -482,6 +496,8 @@ public void updateMembership(
*
*
* Generates the manifest for deployment of the GKE connect agent.
+ * **This method is used internally by Google-provided libraries.**
+ * Most clients should not need to call this method directly.
*
*/
public void generateConnectManifest(
@@ -570,8 +586,12 @@ public final io.grpc.ServerServiceDefinition bindService() {
*
*
*
- * GKE Hub CRUD API for the Membership resource.
- * The Membership service is currently only available in the global location.
+ * The GKE Hub service handles the registration of many Kubernetes
+ * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1alpha2.Membership] resource.
+ * GKE Hub is currently only available in the global region.
+ * **Membership management may be non-trivial:** it is recommended to use one
+ * of the Google-provided client libraries or tools where possible when working
+ * with Membership resources.
*
*/
public static final class GkeHubStub extends io.grpc.stub.AbstractAsyncStub
- * Adds a new Membership.
+ * Creates a new Membership.
+ * **This is currently only supported for GKE clusters on Google Cloud**.
+ * To register other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
*
*/
public void createMembership(
@@ -638,6 +661,9 @@ public void createMembership(
*
*
* Removes a Membership.
+ * **This is currently only supported for GKE clusters on Google Cloud**.
+ * To unregister other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
*
*/
public void deleteMembership(
@@ -670,6 +696,8 @@ public void updateMembership(
*
*
* Generates the manifest for deployment of the GKE connect agent.
+ * **This method is used internally by Google-provided libraries.**
+ * Most clients should not need to call this method directly.
*
*/
public void generateConnectManifest(
@@ -711,8 +739,12 @@ public void initializeHub(
*
*
*
- * GKE Hub CRUD API for the Membership resource.
- * The Membership service is currently only available in the global location.
+ * The GKE Hub service handles the registration of many Kubernetes
+ * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1alpha2.Membership] resource.
+ * GKE Hub is currently only available in the global region.
+ * **Membership management may be non-trivial:** it is recommended to use one
+ * of the Google-provided client libraries or tools where possible when working
+ * with Membership resources.
*
*/
public static final class GkeHubBlockingStub
@@ -756,7 +788,10 @@ public com.google.cloud.gkehub.v1alpha2.Membership getMembership(
*
*
*
- * Adds a new Membership.
+ * Creates a new Membership.
+ * **This is currently only supported for GKE clusters on Google Cloud**.
+ * To register other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
*
*/
public com.google.longrunning.Operation createMembership(
@@ -770,6 +805,9 @@ public com.google.longrunning.Operation createMembership(
*
*
* Removes a Membership.
+ * **This is currently only supported for GKE clusters on Google Cloud**.
+ * To unregister other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
*
*/
public com.google.longrunning.Operation deleteMembership(
@@ -796,6 +834,8 @@ public com.google.longrunning.Operation updateMembership(
*
*
* Generates the manifest for deployment of the GKE connect agent.
+ * **This method is used internally by Google-provided libraries.**
+ * Most clients should not need to call this method directly.
*
*/
public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse generateConnectManifest(
@@ -828,8 +868,12 @@ public com.google.cloud.gkehub.v1alpha2.InitializeHubResponse initializeHub(
*
*
*
- * GKE Hub CRUD API for the Membership resource.
- * The Membership service is currently only available in the global location.
+ * The GKE Hub service handles the registration of many Kubernetes
+ * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1alpha2.Membership] resource.
+ * GKE Hub is currently only available in the global region.
+ * **Membership management may be non-trivial:** it is recommended to use one
+ * of the Google-provided client libraries or tools where possible when working
+ * with Membership resources.
*
*/
public static final class GkeHubFutureStub
@@ -875,7 +919,10 @@ protected GkeHubFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca
*
*
*
- * Adds a new Membership.
+ * Creates a new Membership.
+ * **This is currently only supported for GKE clusters on Google Cloud**.
+ * To register other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
*
*/
public com.google.common.util.concurrent.ListenableFuture
* Removes a Membership.
+ * **This is currently only supported for GKE clusters on Google Cloud**.
+ * To unregister other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
*
*/
public com.google.common.util.concurrent.ListenableFuture
* Generates the manifest for deployment of the GKE connect agent.
+ * **This method is used internally by Google-provided libraries.**
+ * Most clients should not need to call this method directly.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
diff --git a/grpc-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/location/LocationsGrpc.java b/grpc-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/location/LocationsGrpc.java
new file mode 100644
index 00000000..16f28b5c
--- /dev/null
+++ b/grpc-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/location/LocationsGrpc.java
@@ -0,0 +1,476 @@
+/*
+ * 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.location;
+
+import static io.grpc.MethodDescriptor.generateFullMethodName;
+
+/**
+ *
+ *
+ *
+ * An abstract interface that provides location-related information for
+ * a service. Service-specific metadata is provided through the
+ * [Location.metadata][google.cloud.location.Location.metadata] field.
+ *
+ */
+@javax.annotation.Generated(
+ value = "by gRPC proto compiler",
+ comments = "Source: google/cloud/location/locations.proto")
+public final class LocationsGrpc {
+
+ private LocationsGrpc() {}
+
+ public static final String SERVICE_NAME = "google.cloud.location.Locations";
+
+ // Static method descriptors that strictly reflect the proto.
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.cloud.location.ListLocationsRequest,
+ com.google.cloud.location.ListLocationsResponse>
+ getListLocationsMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "ListLocations",
+ requestType = com.google.cloud.location.ListLocationsRequest.class,
+ responseType = com.google.cloud.location.ListLocationsResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor<
+ com.google.cloud.location.ListLocationsRequest,
+ com.google.cloud.location.ListLocationsResponse>
+ getListLocationsMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.cloud.location.ListLocationsRequest,
+ com.google.cloud.location.ListLocationsResponse>
+ getListLocationsMethod;
+ if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) {
+ synchronized (LocationsGrpc.class) {
+ if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) {
+ LocationsGrpc.getListLocationsMethod =
+ getListLocationsMethod =
+ io.grpc.MethodDescriptor
+ .
+ * An abstract interface that provides location-related information for
+ * a service. Service-specific metadata is provided through the
+ * [Location.metadata][google.cloud.location.Location.metadata] field.
+ *
+ */
+ public abstract static class LocationsImplBase implements io.grpc.BindableService {
+
+ /**
+ *
+ *
+ *
+ * Lists information about the supported locations for this service.
+ *
+ */
+ public void listLocations(
+ com.google.cloud.location.ListLocationsRequest request,
+ io.grpc.stub.StreamObserver
+ * Gets information about a location.
+ *
+ */
+ public void getLocation(
+ com.google.cloud.location.GetLocationRequest request,
+ io.grpc.stub.StreamObserver
+ * An abstract interface that provides location-related information for
+ * a service. Service-specific metadata is provided through the
+ * [Location.metadata][google.cloud.location.Location.metadata] field.
+ *
+ */
+ public static final class LocationsStub extends io.grpc.stub.AbstractAsyncStub
+ * Lists information about the supported locations for this service.
+ *
+ */
+ public void listLocations(
+ com.google.cloud.location.ListLocationsRequest request,
+ io.grpc.stub.StreamObserver
+ * Gets information about a location.
+ *
+ */
+ public void getLocation(
+ com.google.cloud.location.GetLocationRequest request,
+ io.grpc.stub.StreamObserver
+ * An abstract interface that provides location-related information for
+ * a service. Service-specific metadata is provided through the
+ * [Location.metadata][google.cloud.location.Location.metadata] field.
+ *
+ */
+ public static final class LocationsBlockingStub
+ extends io.grpc.stub.AbstractBlockingStub
+ * Lists information about the supported locations for this service.
+ *
+ */
+ public com.google.cloud.location.ListLocationsResponse listLocations(
+ com.google.cloud.location.ListLocationsRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getListLocationsMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Gets information about a location.
+ *
+ */
+ public com.google.cloud.location.Location getLocation(
+ com.google.cloud.location.GetLocationRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getGetLocationMethod(), getCallOptions(), request);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * An abstract interface that provides location-related information for
+ * a service. Service-specific metadata is provided through the
+ * [Location.metadata][google.cloud.location.Location.metadata] field.
+ *
+ */
+ public static final class LocationsFutureStub
+ extends io.grpc.stub.AbstractFutureStub
+ * Lists information about the supported locations for this service.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.cloud.location.ListLocationsResponse>
+ listLocations(com.google.cloud.location.ListLocationsRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getListLocationsMethod(), getCallOptions()), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Gets information about a location.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture
+ * Output only. If cluster_missing is set then it denotes that the GKE cluster no longer
+ * exists in the GKE Control Plane.
+ *
+ *
+ * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The clusterMissing.
+ */
+ @java.lang.Override
+ public boolean getClusterMissing() {
+ return clusterMissing_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -181,6 +205,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!getResourceLinkBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceLink_);
}
+ if (clusterMissing_ != false) {
+ output.writeBool(2, clusterMissing_);
+ }
unknownFields.writeTo(output);
}
@@ -193,6 +220,9 @@ public int getSerializedSize() {
if (!getResourceLinkBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceLink_);
}
+ if (clusterMissing_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, clusterMissing_);
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -210,6 +240,7 @@ public boolean equals(final java.lang.Object obj) {
(com.google.cloud.gkehub.v1alpha2.GkeCluster) obj;
if (!getResourceLink().equals(other.getResourceLink())) return false;
+ if (getClusterMissing() != other.getClusterMissing()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -223,6 +254,8 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + RESOURCE_LINK_FIELD_NUMBER;
hash = (53 * hash) + getResourceLink().hashCode();
+ hash = (37 * hash) + CLUSTER_MISSING_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClusterMissing());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -370,6 +403,8 @@ public Builder clear() {
super.clear();
resourceLink_ = "";
+ clusterMissing_ = false;
+
return this;
}
@@ -398,6 +433,7 @@ public com.google.cloud.gkehub.v1alpha2.GkeCluster buildPartial() {
com.google.cloud.gkehub.v1alpha2.GkeCluster result =
new com.google.cloud.gkehub.v1alpha2.GkeCluster(this);
result.resourceLink_ = resourceLink_;
+ result.clusterMissing_ = clusterMissing_;
onBuilt();
return result;
}
@@ -451,6 +487,9 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.GkeCluster other) {
resourceLink_ = other.resourceLink_;
onChanged();
}
+ if (other.getClusterMissing() != false) {
+ setClusterMissing(other.getClusterMissing());
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -596,6 +635,61 @@ public Builder setResourceLinkBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private boolean clusterMissing_;
+ /**
+ *
+ *
+ *
+ * Output only. If cluster_missing is set then it denotes that the GKE cluster no longer
+ * exists in the GKE Control Plane.
+ *
+ *
+ * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The clusterMissing.
+ */
+ @java.lang.Override
+ public boolean getClusterMissing() {
+ return clusterMissing_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. If cluster_missing is set then it denotes that the GKE cluster no longer
+ * exists in the GKE Control Plane.
+ *
+ *
+ * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The clusterMissing to set.
+ * @return This builder for chaining.
+ */
+ public Builder setClusterMissing(boolean value) {
+
+ clusterMissing_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. If cluster_missing is set then it denotes that the GKE cluster no longer
+ * exists in the GKE Control Plane.
+ *
+ *
+ * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearClusterMissing() {
+
+ clusterMissing_ = false;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeClusterOrBuilder.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeClusterOrBuilder.java
index 8941f374..1906f38e 100644
--- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeClusterOrBuilder.java
+++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeClusterOrBuilder.java
@@ -51,4 +51,18 @@ public interface GkeClusterOrBuilder
* @return The bytes for resourceLink.
*/
com.google.protobuf.ByteString getResourceLinkBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. If cluster_missing is set then it denotes that the GKE cluster no longer
+ * exists in the GKE Control Plane.
+ *
+ *
+ * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The clusterMissing.
+ */
+ boolean getClusterMissing();
}
diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpoint.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpoint.java
index d64ba17a..662e71bd 100644
--- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpoint.java
+++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpoint.java
@@ -72,17 +72,17 @@ private MembershipEndpoint(
case 10:
{
com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder subBuilder = null;
- if (gkeCluster_ != null) {
- subBuilder = gkeCluster_.toBuilder();
+ if (typeCase_ == 1) {
+ subBuilder = ((com.google.cloud.gkehub.v1alpha2.GkeCluster) type_).toBuilder();
}
- gkeCluster_ =
+ type_ =
input.readMessage(
com.google.cloud.gkehub.v1alpha2.GkeCluster.parser(), extensionRegistry);
if (subBuilder != null) {
- subBuilder.mergeFrom(gkeCluster_);
- gkeCluster_ = subBuilder.buildPartial();
+ subBuilder.mergeFrom((com.google.cloud.gkehub.v1alpha2.GkeCluster) type_);
+ type_ = subBuilder.buildPartial();
}
-
+ typeCase_ = 1;
break;
}
case 18:
@@ -117,6 +117,40 @@ private MembershipEndpoint(
kubernetesResource_ = subBuilder.buildPartial();
}
+ break;
+ }
+ case 34:
+ {
+ com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder subBuilder = null;
+ if (typeCase_ == 4) {
+ subBuilder = ((com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_).toBuilder();
+ }
+ type_ =
+ input.readMessage(
+ com.google.cloud.gkehub.v1alpha2.OnPremCluster.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_);
+ type_ = subBuilder.buildPartial();
+ }
+ typeCase_ = 4;
+ break;
+ }
+ case 42:
+ {
+ com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder subBuilder = null;
+ if (typeCase_ == 5) {
+ subBuilder =
+ ((com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_).toBuilder();
+ }
+ type_ =
+ input.readMessage(
+ com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_);
+ type_ = subBuilder.buildPartial();
+ }
+ typeCase_ = 5;
break;
}
default:
@@ -153,13 +187,62 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.Builder.class);
}
+ private int typeCase_ = 0;
+ private java.lang.Object type_;
+
+ public enum TypeCase
+ implements
+ com.google.protobuf.Internal.EnumLite,
+ com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ GKE_CLUSTER(1),
+ ON_PREM_CLUSTER(4),
+ MULTI_CLOUD_CLUSTER(5),
+ TYPE_NOT_SET(0);
+ private final int value;
+
+ private TypeCase(int value) {
+ this.value = value;
+ }
+ /**
+ * @param value The number of the enum to look for.
+ * @return The enum associated with the given number.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static TypeCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static TypeCase forNumber(int value) {
+ switch (value) {
+ case 1:
+ return GKE_CLUSTER;
+ case 4:
+ return ON_PREM_CLUSTER;
+ case 5:
+ return MULTI_CLOUD_CLUSTER;
+ case 0:
+ return TYPE_NOT_SET;
+ default:
+ return null;
+ }
+ }
+
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public TypeCase getTypeCase() {
+ return TypeCase.forNumber(typeCase_);
+ }
+
public static final int GKE_CLUSTER_FIELD_NUMBER = 1;
- private com.google.cloud.gkehub.v1alpha2.GkeCluster gkeCluster_;
/**
*
*
*
- * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
+ * Optional. Specific information for a GKE-on-GCP cluster.
*
*
*
@@ -170,13 +253,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*/
@java.lang.Override
public boolean hasGkeCluster() {
- return gkeCluster_ != null;
+ return typeCase_ == 1;
}
/**
*
*
*
- * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
+ * Optional. Specific information for a GKE-on-GCP cluster.
*
*
*
@@ -187,15 +270,16 @@ public boolean hasGkeCluster() {
*/
@java.lang.Override
public com.google.cloud.gkehub.v1alpha2.GkeCluster getGkeCluster() {
- return gkeCluster_ == null
- ? com.google.cloud.gkehub.v1alpha2.GkeCluster.getDefaultInstance()
- : gkeCluster_;
+ if (typeCase_ == 1) {
+ return (com.google.cloud.gkehub.v1alpha2.GkeCluster) type_;
+ }
+ return com.google.cloud.gkehub.v1alpha2.GkeCluster.getDefaultInstance();
}
/**
*
*
*
- * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
+ * Optional. Specific information for a GKE-on-GCP cluster.
*
*
*
@@ -204,7 +288,125 @@ public com.google.cloud.gkehub.v1alpha2.GkeCluster getGkeCluster() {
*/
@java.lang.Override
public com.google.cloud.gkehub.v1alpha2.GkeClusterOrBuilder getGkeClusterOrBuilder() {
- return getGkeCluster();
+ if (typeCase_ == 1) {
+ return (com.google.cloud.gkehub.v1alpha2.GkeCluster) type_;
+ }
+ return com.google.cloud.gkehub.v1alpha2.GkeCluster.getDefaultInstance();
+ }
+
+ public static final int ON_PREM_CLUSTER_FIELD_NUMBER = 4;
+ /**
+ *
+ *
+ *
+ * Optional. Specific information for a GKE On-Prem cluster.
+ *
+ *
+ *
+ * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the onPremCluster field is set.
+ */
+ @java.lang.Override
+ public boolean hasOnPremCluster() {
+ return typeCase_ == 4;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specific information for a GKE On-Prem cluster.
+ *
+ *
+ *
+ * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The onPremCluster.
+ */
+ @java.lang.Override
+ public com.google.cloud.gkehub.v1alpha2.OnPremCluster getOnPremCluster() {
+ if (typeCase_ == 4) {
+ return (com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_;
+ }
+ return com.google.cloud.gkehub.v1alpha2.OnPremCluster.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specific information for a GKE On-Prem cluster.
+ *
+ *
+ *
+ * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.gkehub.v1alpha2.OnPremClusterOrBuilder getOnPremClusterOrBuilder() {
+ if (typeCase_ == 4) {
+ return (com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_;
+ }
+ return com.google.cloud.gkehub.v1alpha2.OnPremCluster.getDefaultInstance();
+ }
+
+ public static final int MULTI_CLOUD_CLUSTER_FIELD_NUMBER = 5;
+ /**
+ *
+ *
+ *
+ * Optional. Specific information for a GKE Multi-Cloud cluster.
+ *
+ *
+ *
+ * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the multiCloudCluster field is set.
+ */
+ @java.lang.Override
+ public boolean hasMultiCloudCluster() {
+ return typeCase_ == 5;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specific information for a GKE Multi-Cloud cluster.
+ *
+ *
+ *
+ * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The multiCloudCluster.
+ */
+ @java.lang.Override
+ public com.google.cloud.gkehub.v1alpha2.MultiCloudCluster getMultiCloudCluster() {
+ if (typeCase_ == 5) {
+ return (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_;
+ }
+ return com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specific information for a GKE Multi-Cloud cluster.
+ *
+ *
+ *
+ * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder
+ getMultiCloudClusterOrBuilder() {
+ if (typeCase_ == 5) {
+ return (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_;
+ }
+ return com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.getDefaultInstance();
}
public static final int KUBERNETES_METADATA_FIELD_NUMBER = 2;
@@ -349,8 +551,8 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (gkeCluster_ != null) {
- output.writeMessage(1, getGkeCluster());
+ if (typeCase_ == 1) {
+ output.writeMessage(1, (com.google.cloud.gkehub.v1alpha2.GkeCluster) type_);
}
if (kubernetesMetadata_ != null) {
output.writeMessage(2, getKubernetesMetadata());
@@ -358,6 +560,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (kubernetesResource_ != null) {
output.writeMessage(3, getKubernetesResource());
}
+ if (typeCase_ == 4) {
+ output.writeMessage(4, (com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_);
+ }
+ if (typeCase_ == 5) {
+ output.writeMessage(5, (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_);
+ }
unknownFields.writeTo(output);
}
@@ -367,8 +575,10 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (gkeCluster_ != null) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGkeCluster());
+ if (typeCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 1, (com.google.cloud.gkehub.v1alpha2.GkeCluster) type_);
}
if (kubernetesMetadata_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getKubernetesMetadata());
@@ -376,6 +586,16 @@ public int getSerializedSize() {
if (kubernetesResource_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getKubernetesResource());
}
+ if (typeCase_ == 4) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4, (com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_);
+ }
+ if (typeCase_ == 5) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 5, (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_);
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -392,10 +612,6 @@ public boolean equals(final java.lang.Object obj) {
com.google.cloud.gkehub.v1alpha2.MembershipEndpoint other =
(com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) obj;
- if (hasGkeCluster() != other.hasGkeCluster()) return false;
- if (hasGkeCluster()) {
- if (!getGkeCluster().equals(other.getGkeCluster())) return false;
- }
if (hasKubernetesMetadata() != other.hasKubernetesMetadata()) return false;
if (hasKubernetesMetadata()) {
if (!getKubernetesMetadata().equals(other.getKubernetesMetadata())) return false;
@@ -404,6 +620,20 @@ public boolean equals(final java.lang.Object obj) {
if (hasKubernetesResource()) {
if (!getKubernetesResource().equals(other.getKubernetesResource())) return false;
}
+ if (!getTypeCase().equals(other.getTypeCase())) return false;
+ switch (typeCase_) {
+ case 1:
+ if (!getGkeCluster().equals(other.getGkeCluster())) return false;
+ break;
+ case 4:
+ if (!getOnPremCluster().equals(other.getOnPremCluster())) return false;
+ break;
+ case 5:
+ if (!getMultiCloudCluster().equals(other.getMultiCloudCluster())) return false;
+ break;
+ case 0:
+ default:
+ }
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -415,10 +645,6 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
- if (hasGkeCluster()) {
- hash = (37 * hash) + GKE_CLUSTER_FIELD_NUMBER;
- hash = (53 * hash) + getGkeCluster().hashCode();
- }
if (hasKubernetesMetadata()) {
hash = (37 * hash) + KUBERNETES_METADATA_FIELD_NUMBER;
hash = (53 * hash) + getKubernetesMetadata().hashCode();
@@ -427,6 +653,22 @@ public int hashCode() {
hash = (37 * hash) + KUBERNETES_RESOURCE_FIELD_NUMBER;
hash = (53 * hash) + getKubernetesResource().hashCode();
}
+ switch (typeCase_) {
+ case 1:
+ hash = (37 * hash) + GKE_CLUSTER_FIELD_NUMBER;
+ hash = (53 * hash) + getGkeCluster().hashCode();
+ break;
+ case 4:
+ hash = (37 * hash) + ON_PREM_CLUSTER_FIELD_NUMBER;
+ hash = (53 * hash) + getOnPremCluster().hashCode();
+ break;
+ case 5:
+ hash = (37 * hash) + MULTI_CLOUD_CLUSTER_FIELD_NUMBER;
+ hash = (53 * hash) + getMultiCloudCluster().hashCode();
+ break;
+ case 0:
+ default:
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -573,12 +815,6 @@ private void maybeForceBuilderInitialization() {
@java.lang.Override
public Builder clear() {
super.clear();
- if (gkeClusterBuilder_ == null) {
- gkeCluster_ = null;
- } else {
- gkeCluster_ = null;
- gkeClusterBuilder_ = null;
- }
if (kubernetesMetadataBuilder_ == null) {
kubernetesMetadata_ = null;
} else {
@@ -591,6 +827,8 @@ public Builder clear() {
kubernetesResource_ = null;
kubernetesResourceBuilder_ = null;
}
+ typeCase_ = 0;
+ type_ = null;
return this;
}
@@ -618,10 +856,26 @@ public com.google.cloud.gkehub.v1alpha2.MembershipEndpoint build() {
public com.google.cloud.gkehub.v1alpha2.MembershipEndpoint buildPartial() {
com.google.cloud.gkehub.v1alpha2.MembershipEndpoint result =
new com.google.cloud.gkehub.v1alpha2.MembershipEndpoint(this);
- if (gkeClusterBuilder_ == null) {
- result.gkeCluster_ = gkeCluster_;
- } else {
- result.gkeCluster_ = gkeClusterBuilder_.build();
+ if (typeCase_ == 1) {
+ if (gkeClusterBuilder_ == null) {
+ result.type_ = type_;
+ } else {
+ result.type_ = gkeClusterBuilder_.build();
+ }
+ }
+ if (typeCase_ == 4) {
+ if (onPremClusterBuilder_ == null) {
+ result.type_ = type_;
+ } else {
+ result.type_ = onPremClusterBuilder_.build();
+ }
+ }
+ if (typeCase_ == 5) {
+ if (multiCloudClusterBuilder_ == null) {
+ result.type_ = type_;
+ } else {
+ result.type_ = multiCloudClusterBuilder_.build();
+ }
}
if (kubernetesMetadataBuilder_ == null) {
result.kubernetesMetadata_ = kubernetesMetadata_;
@@ -633,6 +887,7 @@ public com.google.cloud.gkehub.v1alpha2.MembershipEndpoint buildPartial() {
} else {
result.kubernetesResource_ = kubernetesResourceBuilder_.build();
}
+ result.typeCase_ = typeCase_;
onBuilt();
return result;
}
@@ -683,15 +938,33 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.MembershipEndpoint other) {
if (other == com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.getDefaultInstance())
return this;
- if (other.hasGkeCluster()) {
- mergeGkeCluster(other.getGkeCluster());
- }
if (other.hasKubernetesMetadata()) {
mergeKubernetesMetadata(other.getKubernetesMetadata());
}
if (other.hasKubernetesResource()) {
mergeKubernetesResource(other.getKubernetesResource());
}
+ switch (other.getTypeCase()) {
+ case GKE_CLUSTER:
+ {
+ mergeGkeCluster(other.getGkeCluster());
+ break;
+ }
+ case ON_PREM_CLUSTER:
+ {
+ mergeOnPremCluster(other.getOnPremCluster());
+ break;
+ }
+ case MULTI_CLOUD_CLUSTER:
+ {
+ mergeMultiCloudCluster(other.getMultiCloudCluster());
+ break;
+ }
+ case TYPE_NOT_SET:
+ {
+ break;
+ }
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -722,7 +995,20 @@ public Builder mergeFrom(
return this;
}
- private com.google.cloud.gkehub.v1alpha2.GkeCluster gkeCluster_;
+ private int typeCase_ = 0;
+ private java.lang.Object type_;
+
+ public TypeCase getTypeCase() {
+ return TypeCase.forNumber(typeCase_);
+ }
+
+ public Builder clearType() {
+ typeCase_ = 0;
+ type_ = null;
+ onChanged();
+ return this;
+ }
+
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.gkehub.v1alpha2.GkeCluster,
com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder,
@@ -732,7 +1018,7 @@ public Builder mergeFrom(
*
*
*
- * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
+ * Optional. Specific information for a GKE-on-GCP cluster.
*
*
*
@@ -741,14 +1027,15 @@ public Builder mergeFrom(
*
* @return Whether the gkeCluster field is set.
*/
+ @java.lang.Override
public boolean hasGkeCluster() {
- return gkeClusterBuilder_ != null || gkeCluster_ != null;
+ return typeCase_ == 1;
}
/**
*
*
*
- * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
+ * Optional. Specific information for a GKE-on-GCP cluster.
*
*
*
@@ -757,20 +1044,25 @@ public boolean hasGkeCluster() {
*
* @return The gkeCluster.
*/
+ @java.lang.Override
public com.google.cloud.gkehub.v1alpha2.GkeCluster getGkeCluster() {
if (gkeClusterBuilder_ == null) {
- return gkeCluster_ == null
- ? com.google.cloud.gkehub.v1alpha2.GkeCluster.getDefaultInstance()
- : gkeCluster_;
+ if (typeCase_ == 1) {
+ return (com.google.cloud.gkehub.v1alpha2.GkeCluster) type_;
+ }
+ return com.google.cloud.gkehub.v1alpha2.GkeCluster.getDefaultInstance();
} else {
- return gkeClusterBuilder_.getMessage();
+ if (typeCase_ == 1) {
+ return gkeClusterBuilder_.getMessage();
+ }
+ return com.google.cloud.gkehub.v1alpha2.GkeCluster.getDefaultInstance();
}
}
/**
*
*
*
- * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
+ * Optional. Specific information for a GKE-on-GCP cluster.
*
*
*
@@ -782,19 +1074,19 @@ public Builder setGkeCluster(com.google.cloud.gkehub.v1alpha2.GkeCluster value)
if (value == null) {
throw new NullPointerException();
}
- gkeCluster_ = value;
+ type_ = value;
onChanged();
} else {
gkeClusterBuilder_.setMessage(value);
}
-
+ typeCase_ = 1;
return this;
}
/**
*
*
*
- * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
+ * Optional. Specific information for a GKE-on-GCP cluster.
*
*
*
@@ -804,19 +1096,19 @@ public Builder setGkeCluster(com.google.cloud.gkehub.v1alpha2.GkeCluster value)
public Builder setGkeCluster(
com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder builderForValue) {
if (gkeClusterBuilder_ == null) {
- gkeCluster_ = builderForValue.build();
+ type_ = builderForValue.build();
onChanged();
} else {
gkeClusterBuilder_.setMessage(builderForValue.build());
}
-
+ typeCase_ = 1;
return this;
}
/**
*
*
*
- * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
+ * Optional. Specific information for a GKE-on-GCP cluster.
*
*
*
@@ -825,26 +1117,31 @@ public Builder setGkeCluster(
*/
public Builder mergeGkeCluster(com.google.cloud.gkehub.v1alpha2.GkeCluster value) {
if (gkeClusterBuilder_ == null) {
- if (gkeCluster_ != null) {
- gkeCluster_ =
- com.google.cloud.gkehub.v1alpha2.GkeCluster.newBuilder(gkeCluster_)
+ if (typeCase_ == 1
+ && type_ != com.google.cloud.gkehub.v1alpha2.GkeCluster.getDefaultInstance()) {
+ type_ =
+ com.google.cloud.gkehub.v1alpha2.GkeCluster.newBuilder(
+ (com.google.cloud.gkehub.v1alpha2.GkeCluster) type_)
.mergeFrom(value)
.buildPartial();
} else {
- gkeCluster_ = value;
+ type_ = value;
}
onChanged();
} else {
- gkeClusterBuilder_.mergeFrom(value);
+ if (typeCase_ == 1) {
+ gkeClusterBuilder_.mergeFrom(value);
+ }
+ gkeClusterBuilder_.setMessage(value);
}
-
+ typeCase_ = 1;
return this;
}
/**
*
*
*
- * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
+ * Optional. Specific information for a GKE-on-GCP cluster.
*
*
*
@@ -853,20 +1150,25 @@ public Builder mergeGkeCluster(com.google.cloud.gkehub.v1alpha2.GkeCluster value
*/
public Builder clearGkeCluster() {
if (gkeClusterBuilder_ == null) {
- gkeCluster_ = null;
- onChanged();
+ if (typeCase_ == 1) {
+ typeCase_ = 0;
+ type_ = null;
+ onChanged();
+ }
} else {
- gkeCluster_ = null;
- gkeClusterBuilder_ = null;
+ if (typeCase_ == 1) {
+ typeCase_ = 0;
+ type_ = null;
+ }
+ gkeClusterBuilder_.clear();
}
-
return this;
}
/**
*
*
*
- * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
+ * Optional. Specific information for a GKE-on-GCP cluster.
*
*
*
@@ -874,35 +1176,35 @@ public Builder clearGkeCluster() {
*
*/
public com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder getGkeClusterBuilder() {
-
- onChanged();
return getGkeClusterFieldBuilder().getBuilder();
}
/**
*
*
*
- * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
+ * Optional. Specific information for a GKE-on-GCP cluster.
*
*
*
* .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL];
*
*/
+ @java.lang.Override
public com.google.cloud.gkehub.v1alpha2.GkeClusterOrBuilder getGkeClusterOrBuilder() {
- if (gkeClusterBuilder_ != null) {
+ if ((typeCase_ == 1) && (gkeClusterBuilder_ != null)) {
return gkeClusterBuilder_.getMessageOrBuilder();
} else {
- return gkeCluster_ == null
- ? com.google.cloud.gkehub.v1alpha2.GkeCluster.getDefaultInstance()
- : gkeCluster_;
+ if (typeCase_ == 1) {
+ return (com.google.cloud.gkehub.v1alpha2.GkeCluster) type_;
+ }
+ return com.google.cloud.gkehub.v1alpha2.GkeCluster.getDefaultInstance();
}
}
/**
*
*
*
- * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
+ * Optional. Specific information for a GKE-on-GCP cluster.
*
*
*
@@ -915,17 +1217,482 @@ public com.google.cloud.gkehub.v1alpha2.GkeClusterOrBuilder getGkeClusterOrBuild
com.google.cloud.gkehub.v1alpha2.GkeClusterOrBuilder>
getGkeClusterFieldBuilder() {
if (gkeClusterBuilder_ == null) {
+ if (!(typeCase_ == 1)) {
+ type_ = com.google.cloud.gkehub.v1alpha2.GkeCluster.getDefaultInstance();
+ }
gkeClusterBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.gkehub.v1alpha2.GkeCluster,
com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder,
com.google.cloud.gkehub.v1alpha2.GkeClusterOrBuilder>(
- getGkeCluster(), getParentForChildren(), isClean());
- gkeCluster_ = null;
+ (com.google.cloud.gkehub.v1alpha2.GkeCluster) type_,
+ getParentForChildren(),
+ isClean());
+ type_ = null;
}
+ typeCase_ = 1;
+ onChanged();
+ ;
return gkeClusterBuilder_;
}
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.gkehub.v1alpha2.OnPremCluster,
+ com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder,
+ com.google.cloud.gkehub.v1alpha2.OnPremClusterOrBuilder>
+ onPremClusterBuilder_;
+ /**
+ *
+ *
+ *
+ * Optional. Specific information for a GKE On-Prem cluster.
+ *
+ *
+ *
+ * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the onPremCluster field is set.
+ */
+ @java.lang.Override
+ public boolean hasOnPremCluster() {
+ return typeCase_ == 4;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specific information for a GKE On-Prem cluster.
+ *
+ *
+ *
+ * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The onPremCluster.
+ */
+ @java.lang.Override
+ public com.google.cloud.gkehub.v1alpha2.OnPremCluster getOnPremCluster() {
+ if (onPremClusterBuilder_ == null) {
+ if (typeCase_ == 4) {
+ return (com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_;
+ }
+ return com.google.cloud.gkehub.v1alpha2.OnPremCluster.getDefaultInstance();
+ } else {
+ if (typeCase_ == 4) {
+ return onPremClusterBuilder_.getMessage();
+ }
+ return com.google.cloud.gkehub.v1alpha2.OnPremCluster.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specific information for a GKE On-Prem cluster.
+ *
+ *
+ *
+ * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setOnPremCluster(com.google.cloud.gkehub.v1alpha2.OnPremCluster value) {
+ if (onPremClusterBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ type_ = value;
+ onChanged();
+ } else {
+ onPremClusterBuilder_.setMessage(value);
+ }
+ typeCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specific information for a GKE On-Prem cluster.
+ *
+ *
+ *
+ * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setOnPremCluster(
+ com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder builderForValue) {
+ if (onPremClusterBuilder_ == null) {
+ type_ = builderForValue.build();
+ onChanged();
+ } else {
+ onPremClusterBuilder_.setMessage(builderForValue.build());
+ }
+ typeCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specific information for a GKE On-Prem cluster.
+ *
+ *
+ *
+ * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeOnPremCluster(com.google.cloud.gkehub.v1alpha2.OnPremCluster value) {
+ if (onPremClusterBuilder_ == null) {
+ if (typeCase_ == 4
+ && type_ != com.google.cloud.gkehub.v1alpha2.OnPremCluster.getDefaultInstance()) {
+ type_ =
+ com.google.cloud.gkehub.v1alpha2.OnPremCluster.newBuilder(
+ (com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ type_ = value;
+ }
+ onChanged();
+ } else {
+ if (typeCase_ == 4) {
+ onPremClusterBuilder_.mergeFrom(value);
+ }
+ onPremClusterBuilder_.setMessage(value);
+ }
+ typeCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specific information for a GKE On-Prem cluster.
+ *
+ *
+ *
+ * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearOnPremCluster() {
+ if (onPremClusterBuilder_ == null) {
+ if (typeCase_ == 4) {
+ typeCase_ = 0;
+ type_ = null;
+ onChanged();
+ }
+ } else {
+ if (typeCase_ == 4) {
+ typeCase_ = 0;
+ type_ = null;
+ }
+ onPremClusterBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specific information for a GKE On-Prem cluster.
+ *
+ *
+ *
+ * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder getOnPremClusterBuilder() {
+ return getOnPremClusterFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specific information for a GKE On-Prem cluster.
+ *
+ *
+ *
+ * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.gkehub.v1alpha2.OnPremClusterOrBuilder getOnPremClusterOrBuilder() {
+ if ((typeCase_ == 4) && (onPremClusterBuilder_ != null)) {
+ return onPremClusterBuilder_.getMessageOrBuilder();
+ } else {
+ if (typeCase_ == 4) {
+ return (com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_;
+ }
+ return com.google.cloud.gkehub.v1alpha2.OnPremCluster.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specific information for a GKE On-Prem cluster.
+ *
+ *
+ *
+ * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.gkehub.v1alpha2.OnPremCluster,
+ com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder,
+ com.google.cloud.gkehub.v1alpha2.OnPremClusterOrBuilder>
+ getOnPremClusterFieldBuilder() {
+ if (onPremClusterBuilder_ == null) {
+ if (!(typeCase_ == 4)) {
+ type_ = com.google.cloud.gkehub.v1alpha2.OnPremCluster.getDefaultInstance();
+ }
+ onPremClusterBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.gkehub.v1alpha2.OnPremCluster,
+ com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder,
+ com.google.cloud.gkehub.v1alpha2.OnPremClusterOrBuilder>(
+ (com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_,
+ getParentForChildren(),
+ isClean());
+ type_ = null;
+ }
+ typeCase_ = 4;
+ onChanged();
+ ;
+ return onPremClusterBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.gkehub.v1alpha2.MultiCloudCluster,
+ com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder,
+ com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder>
+ multiCloudClusterBuilder_;
+ /**
+ *
+ *
+ *
+ * Optional. Specific information for a GKE Multi-Cloud cluster.
+ *
+ *
+ *
+ * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the multiCloudCluster field is set.
+ */
+ @java.lang.Override
+ public boolean hasMultiCloudCluster() {
+ return typeCase_ == 5;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specific information for a GKE Multi-Cloud cluster.
+ *
+ *
+ *
+ * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The multiCloudCluster.
+ */
+ @java.lang.Override
+ public com.google.cloud.gkehub.v1alpha2.MultiCloudCluster getMultiCloudCluster() {
+ if (multiCloudClusterBuilder_ == null) {
+ if (typeCase_ == 5) {
+ return (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_;
+ }
+ return com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.getDefaultInstance();
+ } else {
+ if (typeCase_ == 5) {
+ return multiCloudClusterBuilder_.getMessage();
+ }
+ return com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specific information for a GKE Multi-Cloud cluster.
+ *
+ *
+ *
+ * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setMultiCloudCluster(com.google.cloud.gkehub.v1alpha2.MultiCloudCluster value) {
+ if (multiCloudClusterBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ type_ = value;
+ onChanged();
+ } else {
+ multiCloudClusterBuilder_.setMessage(value);
+ }
+ typeCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specific information for a GKE Multi-Cloud cluster.
+ *
+ *
+ *
+ * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setMultiCloudCluster(
+ com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder builderForValue) {
+ if (multiCloudClusterBuilder_ == null) {
+ type_ = builderForValue.build();
+ onChanged();
+ } else {
+ multiCloudClusterBuilder_.setMessage(builderForValue.build());
+ }
+ typeCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specific information for a GKE Multi-Cloud cluster.
+ *
+ *
+ *
+ * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeMultiCloudCluster(
+ com.google.cloud.gkehub.v1alpha2.MultiCloudCluster value) {
+ if (multiCloudClusterBuilder_ == null) {
+ if (typeCase_ == 5
+ && type_ != com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.getDefaultInstance()) {
+ type_ =
+ com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.newBuilder(
+ (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ type_ = value;
+ }
+ onChanged();
+ } else {
+ if (typeCase_ == 5) {
+ multiCloudClusterBuilder_.mergeFrom(value);
+ }
+ multiCloudClusterBuilder_.setMessage(value);
+ }
+ typeCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specific information for a GKE Multi-Cloud cluster.
+ *
+ *
+ *
+ * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearMultiCloudCluster() {
+ if (multiCloudClusterBuilder_ == null) {
+ if (typeCase_ == 5) {
+ typeCase_ = 0;
+ type_ = null;
+ onChanged();
+ }
+ } else {
+ if (typeCase_ == 5) {
+ typeCase_ = 0;
+ type_ = null;
+ }
+ multiCloudClusterBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specific information for a GKE Multi-Cloud cluster.
+ *
+ *
+ *
+ * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder
+ getMultiCloudClusterBuilder() {
+ return getMultiCloudClusterFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specific information for a GKE Multi-Cloud cluster.
+ *
+ *
+ *
+ * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder
+ getMultiCloudClusterOrBuilder() {
+ if ((typeCase_ == 5) && (multiCloudClusterBuilder_ != null)) {
+ return multiCloudClusterBuilder_.getMessageOrBuilder();
+ } else {
+ if (typeCase_ == 5) {
+ return (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_;
+ }
+ return com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specific information for a GKE Multi-Cloud cluster.
+ *
+ *
+ *
+ * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.gkehub.v1alpha2.MultiCloudCluster,
+ com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder,
+ com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder>
+ getMultiCloudClusterFieldBuilder() {
+ if (multiCloudClusterBuilder_ == null) {
+ if (!(typeCase_ == 5)) {
+ type_ = com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.getDefaultInstance();
+ }
+ multiCloudClusterBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.gkehub.v1alpha2.MultiCloudCluster,
+ com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder,
+ com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder>(
+ (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_,
+ getParentForChildren(),
+ isClean());
+ type_ = null;
+ }
+ typeCase_ = 5;
+ onChanged();
+ ;
+ return multiCloudClusterBuilder_;
+ }
+
private com.google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetesMetadata_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.gkehub.v1alpha2.KubernetesMetadata,
diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpointOrBuilder.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpointOrBuilder.java
index b9acd5cc..72af9e9a 100644
--- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpointOrBuilder.java
+++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpointOrBuilder.java
@@ -27,7 +27,7 @@ public interface MembershipEndpointOrBuilder
*
*
*
- * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
+ * Optional. Specific information for a GKE-on-GCP cluster.
*
*
*
@@ -41,7 +41,7 @@ public interface MembershipEndpointOrBuilder
*
*
*
- * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
+ * Optional. Specific information for a GKE-on-GCP cluster.
*
*
*
@@ -55,7 +55,7 @@ public interface MembershipEndpointOrBuilder
*
*
*
- * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
+ * Optional. Specific information for a GKE-on-GCP cluster.
*
*
*
@@ -64,6 +64,88 @@ public interface MembershipEndpointOrBuilder
*/
com.google.cloud.gkehub.v1alpha2.GkeClusterOrBuilder getGkeClusterOrBuilder();
+ /**
+ *
+ *
+ *
*/
com.google.cloud.gkehub.v1alpha2.KubernetesResourceOrBuilder getKubernetesResourceOrBuilder();
+
+ public com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.TypeCase getTypeCase();
}
diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipProto.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipProto.java
index 7634a4a8..9b9df393 100644
--- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipProto.java
+++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipProto.java
@@ -51,6 +51,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -159,127 +167,137 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "_PREM\020\001\022\017\n\013MULTI_CLOUD\020\002:g\352Ad\n gkehub.go"
+ "ogleapis.com/Membership\022@projects/{proje"
+ "ct}/locations/{location}/memberships/{me"
- + "mbership}B\006\n\004type\"\200\002\n\022MembershipEndpoint"
- + "\022B\n\013gke_cluster\030\001 \001(\0132(.google.cloud.gke"
- + "hub.v1alpha2.GkeClusterB\003\340A\001\022R\n\023kubernet"
- + "es_metadata\030\002 \001(\01320.google.cloud.gkehub."
- + "v1alpha2.KubernetesMetadataB\003\340A\003\022R\n\023kube"
- + "rnetes_resource\030\003 \001(\01320.google.cloud.gke"
- + "hub.v1alpha2.KubernetesResourceB\003\340A\001\"\252\002\n"
- + "\022KubernetesResource\022#\n\026membership_cr_man"
- + "ifest\030\001 \001(\tB\003\340A\004\022Q\n\024membership_resources"
- + "\030\003 \003(\0132..google.cloud.gkehub.v1alpha2.Re"
- + "sourceManifestB\003\340A\003\022N\n\021connect_resources"
- + "\030\004 \003(\0132..google.cloud.gkehub.v1alpha2.Re"
- + "sourceManifestB\003\340A\003\022L\n\020resource_options\030"
- + "\005 \001(\0132-.google.cloud.gkehub.v1alpha2.Res"
- + "ourceOptionsB\003\340A\001\"I\n\017ResourceOptions\022\034\n\017"
- + "connect_version\030\001 \001(\tB\003\340A\001\022\030\n\013v1beta1_cr"
- + "d\030\002 \001(\010B\003\340A\001\"(\n\nGkeCluster\022\032\n\rresource_l"
- + "ink\030\001 \001(\tB\003\340A\005\"\337\001\n\022KubernetesMetadata\022*\n"
- + "\035kubernetes_api_server_version\030\001 \001(\tB\003\340A"
- + "\003\022\035\n\020node_provider_id\030\002 \001(\tB\003\340A\003\022\027\n\nnode"
- + "_count\030\003 \001(\005B\003\340A\003\022\027\n\nvcpu_count\030\004 \001(\005B\003\340"
- + "A\003\022\026\n\tmemory_mb\030\005 \001(\005B\003\340A\003\0224\n\013update_tim"
- + "e\030d \001(\0132\032.google.protobuf.TimestampB\003\340A\003"
- + "\"}\n\tAuthority\022\023\n\006issuer\030\001 \001(\tB\003\340A\001\022\026\n\toi"
- + "dc_jwks\030\005 \001(\014B\003\340A\001\022\036\n\021identity_provider\030"
- + "\003 \001(\tB\003\340A\003\022#\n\026workload_identity_pool\030\004 \001"
- + "(\tB\003\340A\003\"\301\001\n\017MembershipState\022E\n\004code\030\001 \001("
- + "\01622.google.cloud.gkehub.v1alpha2.Members"
- + "hipState.CodeB\003\340A\003\"g\n\004Code\022\024\n\020CODE_UNSPE"
- + "CIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022\014\n\010DEL"
- + "ETING\020\003\022\014\n\010UPDATING\020\004\022\024\n\020SERVICE_UPDATIN"
- + "G\020\005\"\257\001\n\026ListMembershipsRequest\0228\n\006parent"
- + "\030\001 \001(\tB(\340A\002\372A\"\022 gkehub.googleapis.com/Me"
- + "mbership\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage"
- + "_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025"
- + "\n\010order_by\030\005 \001(\tB\003\340A\001\"\204\001\n\027ListMembership"
- + "sResponse\022;\n\tresources\030\001 \003(\0132(.google.cl"
- + "oud.gkehub.v1alpha2.Membership\022\027\n\017next_p"
- + "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"N\n\024"
- + "GetMembershipRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372"
- + "A\"\n gkehub.googleapis.com/Membership\"\260\001\n"
- + "\027CreateMembershipRequest\0228\n\006parent\030\001 \001(\t"
- + "B(\340A\002\372A\"\022 gkehub.googleapis.com/Membersh"
- + "ip\022\032\n\rmembership_id\030\002 \001(\tB\003\340A\002\022?\n\010resour"
- + "ce\030\003 \001(\0132(.google.cloud.gkehub.v1alpha2."
- + "MembershipB\003\340A\002\"Q\n\027DeleteMembershipReque"
- + "st\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n gkehub.googlea"
- + "pis.com/Membership\"\243\001\n\027UpdateMembershipR"
- + "equest\022\021\n\004name\030\001 \001(\tB\003\340A\002\0224\n\013update_mask"
- + "\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022"
- + "?\n\010resource\030\003 \001(\0132(.google.cloud.gkehub."
- + "v1alpha2.MembershipB\003\340A\002\"\315\001\n\036GenerateCon"
- + "nectManifestRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\026"
- + "\n\tnamespace\030\002 \001(\tB\003\340A\001\022\022\n\005proxy\030\003 \001(\014B\003\340"
- + "A\001\022\024\n\007version\030\004 \001(\tB\003\340A\001\022\027\n\nis_upgrade\030\005"
- + " \001(\010B\003\340A\001\022\025\n\010registry\030\006 \001(\tB\003\340A\001\022&\n\031imag"
- + "e_pull_secret_content\030\007 \001(\014B\003\340A\001\"g\n\037Gene"
- + "rateConnectManifestResponse\022D\n\010manifest\030"
- + "\001 \003(\01322.google.cloud.gkehub.v1alpha2.Con"
- + "nectAgentResource\"^\n\024ConnectAgentResourc"
- + "e\0224\n\004type\030\001 \001(\0132&.google.cloud.gkehub.v1"
- + "alpha2.TypeMeta\022\020\n\010manifest\030\002 \001(\t\"<\n\020Res"
- + "ourceManifest\022\020\n\010manifest\030\001 \001(\t\022\026\n\016clust"
- + "er_scoped\030\002 \001(\010\"-\n\010TypeMeta\022\014\n\004kind\030\001 \001("
- + "\t\022\023\n\013api_version\030\002 \001(\t\",\n\024InitializeHubR"
- + "equest\022\024\n\007project\030\001 \001(\tB\003\340A\002\"Q\n\025Initiali"
- + "zeHubResponse\022\030\n\020service_identity\030\001 \001(\t\022"
- + "\036\n\026workload_identity_pool\030\002 \001(\t\"\371\001\n\021Oper"
- + "ationMetadata\0224\n\013create_time\030\001 \001(\0132\032.goo"
- + "gle.protobuf.TimestampB\003\340A\003\0221\n\010end_time\030"
- + "\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023"
- + "\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\032"
- + "\n\rstatus_detail\030\005 \001(\tB\003\340A\003\022\035\n\020cancel_req"
- + "uested\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003"
- + "\340A\0032\333\014\n\006GkeHub\022\306\001\n\017ListMemberships\0224.goo"
- + "gle.cloud.gkehub.v1alpha2.ListMembership"
- + "sRequest\0325.google.cloud.gkehub.v1alpha2."
- + "ListMembershipsResponse\"F\202\323\344\223\0027\0225/v1alph"
- + "a2/{parent=projects/*/locations/*}/membe"
- + "rships\332A\006parent\022\263\001\n\rGetMembership\0222.goog"
- + "le.cloud.gkehub.v1alpha2.GetMembershipRe"
- + "quest\032(.google.cloud.gkehub.v1alpha2.Mem"
- + "bership\"D\202\323\344\223\0027\0225/v1alpha2/{name=project"
- + "s/*/locations/*/memberships/*}\332A\004name\022\364\001"
- + "\n\020CreateMembership\0225.google.cloud.gkehub"
- + ".v1alpha2.CreateMembershipRequest\032\035.goog"
- + "le.longrunning.Operation\"\211\001\202\323\344\223\002A\"5/v1al"
- + "pha2/{parent=projects/*/locations/*}/mem"
- + "berships:\010resource\332A\035parent,resource,mem"
- + "bership_id\312A\037\n\nMembership\022\021OperationMeta"
- + "data\022\333\001\n\020DeleteMembership\0225.google.cloud"
- + ".gkehub.v1alpha2.DeleteMembershipRequest"
- + "\032\035.google.longrunning.Operation\"q\202\323\344\223\0027*"
+ + "mbership}B\006\n\004type\"\254\003\n\022MembershipEndpoint"
+ + "\022D\n\013gke_cluster\030\001 \001(\0132(.google.cloud.gke"
+ + "hub.v1alpha2.GkeClusterB\003\340A\001H\000\022K\n\017on_pre"
+ + "m_cluster\030\004 \001(\0132+.google.cloud.gkehub.v1"
+ + "alpha2.OnPremClusterB\003\340A\001H\000\022S\n\023multi_clo"
+ + "ud_cluster\030\005 \001(\0132/.google.cloud.gkehub.v"
+ + "1alpha2.MultiCloudClusterB\003\340A\001H\000\022R\n\023kube"
+ + "rnetes_metadata\030\002 \001(\01320.google.cloud.gke"
+ + "hub.v1alpha2.KubernetesMetadataB\003\340A\003\022R\n\023"
+ + "kubernetes_resource\030\003 \001(\01320.google.cloud"
+ + ".gkehub.v1alpha2.KubernetesResourceB\003\340A\001"
+ + "B\006\n\004type\"\252\002\n\022KubernetesResource\022#\n\026membe"
+ + "rship_cr_manifest\030\001 \001(\tB\003\340A\004\022Q\n\024membersh"
+ + "ip_resources\030\003 \003(\0132..google.cloud.gkehub"
+ + ".v1alpha2.ResourceManifestB\003\340A\003\022N\n\021conne"
+ + "ct_resources\030\004 \003(\0132..google.cloud.gkehub"
+ + ".v1alpha2.ResourceManifestB\003\340A\003\022L\n\020resou"
+ + "rce_options\030\005 \001(\0132-.google.cloud.gkehub."
+ + "v1alpha2.ResourceOptionsB\003\340A\001\"I\n\017Resourc"
+ + "eOptions\022\034\n\017connect_version\030\001 \001(\tB\003\340A\001\022\030"
+ + "\n\013v1beta1_crd\030\002 \001(\010B\003\340A\001\"F\n\nGkeCluster\022\032"
+ + "\n\rresource_link\030\001 \001(\tB\003\340A\005\022\034\n\017cluster_mi"
+ + "ssing\030\002 \001(\010B\003\340A\003\"e\n\rOnPremCluster\022\032\n\rres"
+ + "ource_link\030\001 \001(\tB\003\340A\005\022\034\n\017cluster_missing"
+ + "\030\002 \001(\010B\003\340A\003\022\032\n\radmin_cluster\030\003 \001(\010B\003\340A\005\""
+ + "M\n\021MultiCloudCluster\022\032\n\rresource_link\030\001 "
+ + "\001(\tB\003\340A\005\022\034\n\017cluster_missing\030\002 \001(\010B\003\340A\003\"\337"
+ + "\001\n\022KubernetesMetadata\022*\n\035kubernetes_api_"
+ + "server_version\030\001 \001(\tB\003\340A\003\022\035\n\020node_provid"
+ + "er_id\030\002 \001(\tB\003\340A\003\022\027\n\nnode_count\030\003 \001(\005B\003\340A"
+ + "\003\022\027\n\nvcpu_count\030\004 \001(\005B\003\340A\003\022\026\n\tmemory_mb\030"
+ + "\005 \001(\005B\003\340A\003\0224\n\013update_time\030d \001(\0132\032.google"
+ + ".protobuf.TimestampB\003\340A\003\"}\n\tAuthority\022\023\n"
+ + "\006issuer\030\001 \001(\tB\003\340A\001\022\026\n\toidc_jwks\030\005 \001(\014B\003\340"
+ + "A\001\022\036\n\021identity_provider\030\003 \001(\tB\003\340A\003\022#\n\026wo"
+ + "rkload_identity_pool\030\004 \001(\tB\003\340A\003\"\301\001\n\017Memb"
+ + "ershipState\022E\n\004code\030\001 \001(\01622.google.cloud"
+ + ".gkehub.v1alpha2.MembershipState.CodeB\003\340"
+ + "A\003\"g\n\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022\014\n\010CREA"
+ + "TING\020\001\022\t\n\005READY\020\002\022\014\n\010DELETING\020\003\022\014\n\010UPDAT"
+ + "ING\020\004\022\024\n\020SERVICE_UPDATING\020\005\"\257\001\n\026ListMemb"
+ + "ershipsRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 "
+ + "gkehub.googleapis.com/Membership\022\026\n\tpage"
+ + "_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A"
+ + "\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\t"
+ + "B\003\340A\001\"\204\001\n\027ListMembershipsResponse\022;\n\tres"
+ + "ources\030\001 \003(\0132(.google.cloud.gkehub.v1alp"
+ + "ha2.Membership\022\027\n\017next_page_token\030\002 \001(\t\022"
+ + "\023\n\013unreachable\030\003 \003(\t\"N\n\024GetMembershipReq"
+ + "uest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n gkehub.googl"
+ + "eapis.com/Membership\"\260\001\n\027CreateMembershi"
+ + "pRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 gkehub"
+ + ".googleapis.com/Membership\022\032\n\rmembership"
+ + "_id\030\002 \001(\tB\003\340A\002\022?\n\010resource\030\003 \001(\0132(.googl"
+ + "e.cloud.gkehub.v1alpha2.MembershipB\003\340A\002\""
+ + "Q\n\027DeleteMembershipRequest\0226\n\004name\030\001 \001(\t"
+ + "B(\340A\002\372A\"\n gkehub.googleapis.com/Membersh"
+ + "ip\"\243\001\n\027UpdateMembershipRequest\022\021\n\004name\030\001"
+ + " \001(\tB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google."
+ + "protobuf.FieldMaskB\003\340A\002\022?\n\010resource\030\003 \001("
+ + "\0132(.google.cloud.gkehub.v1alpha2.Members"
+ + "hipB\003\340A\002\"\315\001\n\036GenerateConnectManifestRequ"
+ + "est\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\026\n\tnamespace\030\002 \001("
+ + "\tB\003\340A\001\022\022\n\005proxy\030\003 \001(\014B\003\340A\001\022\024\n\007version\030\004 "
+ + "\001(\tB\003\340A\001\022\027\n\nis_upgrade\030\005 \001(\010B\003\340A\001\022\025\n\010reg"
+ + "istry\030\006 \001(\tB\003\340A\001\022&\n\031image_pull_secret_co"
+ + "ntent\030\007 \001(\014B\003\340A\001\"g\n\037GenerateConnectManif"
+ + "estResponse\022D\n\010manifest\030\001 \003(\01322.google.c"
+ + "loud.gkehub.v1alpha2.ConnectAgentResourc"
+ + "e\"^\n\024ConnectAgentResource\0224\n\004type\030\001 \001(\0132"
+ + "&.google.cloud.gkehub.v1alpha2.TypeMeta\022"
+ + "\020\n\010manifest\030\002 \001(\t\"<\n\020ResourceManifest\022\020\n"
+ + "\010manifest\030\001 \001(\t\022\026\n\016cluster_scoped\030\002 \001(\010\""
+ + "-\n\010TypeMeta\022\014\n\004kind\030\001 \001(\t\022\023\n\013api_version"
+ + "\030\002 \001(\t\",\n\024InitializeHubRequest\022\024\n\007projec"
+ + "t\030\001 \001(\tB\003\340A\002\"Q\n\025InitializeHubResponse\022\030\n"
+ + "\020service_identity\030\001 \001(\t\022\036\n\026workload_iden"
+ + "tity_pool\030\002 \001(\t\"\371\001\n\021OperationMetadata\0224\n"
+ + "\013create_time\030\001 \001(\0132\032.google.protobuf.Tim"
+ + "estampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.p"
+ + "rotobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003"
+ + "\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\032\n\rstatus_detail\030"
+ + "\005 \001(\tB\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340A"
+ + "\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\0032\333\014\n\006GkeHub\022\306"
+ + "\001\n\017ListMemberships\0224.google.cloud.gkehub"
+ + ".v1alpha2.ListMembershipsRequest\0325.googl"
+ + "e.cloud.gkehub.v1alpha2.ListMembershipsR"
+ + "esponse\"F\202\323\344\223\0027\0225/v1alpha2/{parent=proje"
+ + "cts/*/locations/*}/memberships\332A\006parent\022"
+ + "\263\001\n\rGetMembership\0222.google.cloud.gkehub."
+ + "v1alpha2.GetMembershipRequest\032(.google.c"
+ + "loud.gkehub.v1alpha2.Membership\"D\202\323\344\223\0027\022"
+ "5/v1alpha2/{name=projects/*/locations/*/"
- + "memberships/*}\332A\004name\312A*\n\025google.protobu"
- + "f.Empty\022\021OperationMetadata\022\360\001\n\020UpdateMem"
- + "bership\0225.google.cloud.gkehub.v1alpha2.U"
- + "pdateMembershipRequest\032\035.google.longrunn"
- + "ing.Operation\"\205\001\202\323\344\223\002A25/v1alpha2/{name="
- + "projects/*/locations/*/memberships/*}:\010r"
- + "esource\332A\031name,resource,update_mask\312A\037\n\n"
- + "Membership\022\021OperationMetadata\022\355\001\n\027Genera"
- + "teConnectManifest\022<.google.cloud.gkehub."
- + "v1alpha2.GenerateConnectManifestRequest\032"
- + "=.google.cloud.gkehub.v1alpha2.GenerateC"
- + "onnectManifestResponse\"U\202\323\344\223\002O\022M/v1alpha"
- + "2/{name=projects/*/locations/*/membershi"
- + "ps/*}:generateConnectManifest\022\316\001\n\rInitia"
- + "lizeHub\0222.google.cloud.gkehub.v1alpha2.I"
- + "nitializeHubRequest\0323.google.cloud.gkehu"
- + "b.v1alpha2.InitializeHubResponse\"T\202\323\344\223\002N"
- + "\"I/v1alpha2/{project=projects/*/location"
- + "s/global/memberships}:initializeHub:\001*\032I"
- + "\312A\025gkehub.googleapis.com\322A.https://www.g"
- + "oogleapis.com/auth/cloud-platformB\331\001\n co"
- + "m.google.cloud.gkehub.v1alpha2B\017Membersh"
- + "ipProtoP\001ZBgoogle.golang.org/genproto/go"
- + "ogleapis/cloud/gkehub/v1alpha2;gkehub\252\002\034"
- + "Google.Cloud.GkeHub.V1Alpha2\312\002\034Google\\Cl"
- + "oud\\GkeHub\\V1alpha2\352\002\037Google::Cloud::Gke"
- + "Hub::V1alpha2b\006proto3"
+ + "memberships/*}\332A\004name\022\364\001\n\020CreateMembersh"
+ + "ip\0225.google.cloud.gkehub.v1alpha2.Create"
+ + "MembershipRequest\032\035.google.longrunning.O"
+ + "peration\"\211\001\202\323\344\223\002A\"5/v1alpha2/{parent=pro"
+ + "jects/*/locations/*}/memberships:\010resour"
+ + "ce\332A\035parent,resource,membership_id\312A\037\n\nM"
+ + "embership\022\021OperationMetadata\022\333\001\n\020DeleteM"
+ + "embership\0225.google.cloud.gkehub.v1alpha2"
+ + ".DeleteMembershipRequest\032\035.google.longru"
+ + "nning.Operation\"q\202\323\344\223\0027*5/v1alpha2/{name"
+ + "=projects/*/locations/*/memberships/*}\332A"
+ + "\004name\312A*\n\025google.protobuf.Empty\022\021Operati"
+ + "onMetadata\022\360\001\n\020UpdateMembership\0225.google"
+ + ".cloud.gkehub.v1alpha2.UpdateMembershipR"
+ + "equest\032\035.google.longrunning.Operation\"\205\001"
+ + "\202\323\344\223\002A25/v1alpha2/{name=projects/*/locat"
+ + "ions/*/memberships/*}:\010resource\332A\031name,r"
+ + "esource,update_mask\312A\037\n\nMembership\022\021Oper"
+ + "ationMetadata\022\355\001\n\027GenerateConnectManifes"
+ + "t\022<.google.cloud.gkehub.v1alpha2.Generat"
+ + "eConnectManifestRequest\032=.google.cloud.g"
+ + "kehub.v1alpha2.GenerateConnectManifestRe"
+ + "sponse\"U\202\323\344\223\002O\022M/v1alpha2/{name=projects"
+ + "/*/locations/*/memberships/*}:generateCo"
+ + "nnectManifest\022\316\001\n\rInitializeHub\0222.google"
+ + ".cloud.gkehub.v1alpha2.InitializeHubRequ"
+ + "est\0323.google.cloud.gkehub.v1alpha2.Initi"
+ + "alizeHubResponse\"T\202\323\344\223\002N\"I/v1alpha2/{pro"
+ + "ject=projects/*/locations/global/members"
+ + "hips}:initializeHub:\001*\032I\312A\025gkehub.google"
+ + "apis.com\322A.https://www.googleapis.com/au"
+ + "th/cloud-platformB\331\001\n com.google.cloud.g"
+ + "kehub.v1alpha2B\017MembershipProtoP\001ZBgoogl"
+ + "e.golang.org/genproto/googleapis/cloud/g"
+ + "kehub/v1alpha2;gkehub\252\002\034Google.Cloud.Gke"
+ + "Hub.V1Alpha2\312\002\034Google\\Cloud\\GkeHub\\V1alp"
+ + "ha2\352\002\037Google::Cloud::GkeHub::V1alpha2b\006p"
+ + "roto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -328,7 +346,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_descriptor,
new java.lang.String[] {
- "GkeCluster", "KubernetesMetadata", "KubernetesResource",
+ "GkeCluster",
+ "OnPremCluster",
+ "MultiCloudCluster",
+ "KubernetesMetadata",
+ "KubernetesResource",
+ "Type",
});
internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_descriptor =
getDescriptor().getMessageTypes().get(2);
@@ -352,10 +375,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_descriptor,
new java.lang.String[] {
- "ResourceLink",
+ "ResourceLink", "ClusterMissing",
});
- internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_descriptor =
+ internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_descriptor =
getDescriptor().getMessageTypes().get(5);
+ internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_descriptor,
+ new java.lang.String[] {
+ "ResourceLink", "ClusterMissing", "AdminCluster",
+ });
+ internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_descriptor =
+ getDescriptor().getMessageTypes().get(6);
+ internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_descriptor,
+ new java.lang.String[] {
+ "ResourceLink", "ClusterMissing",
+ });
+ internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(7);
internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_descriptor,
@@ -368,7 +407,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"UpdateTime",
});
internal_static_google_cloud_gkehub_v1alpha2_Authority_descriptor =
- getDescriptor().getMessageTypes().get(6);
+ getDescriptor().getMessageTypes().get(8);
internal_static_google_cloud_gkehub_v1alpha2_Authority_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_gkehub_v1alpha2_Authority_descriptor,
@@ -376,7 +415,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Issuer", "OidcJwks", "IdentityProvider", "WorkloadIdentityPool",
});
internal_static_google_cloud_gkehub_v1alpha2_MembershipState_descriptor =
- getDescriptor().getMessageTypes().get(7);
+ getDescriptor().getMessageTypes().get(9);
internal_static_google_cloud_gkehub_v1alpha2_MembershipState_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_gkehub_v1alpha2_MembershipState_descriptor,
@@ -384,7 +423,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Code",
});
internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_descriptor =
- getDescriptor().getMessageTypes().get(8);
+ getDescriptor().getMessageTypes().get(10);
internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_descriptor,
@@ -392,7 +431,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Parent", "PageSize", "PageToken", "Filter", "OrderBy",
});
internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_descriptor =
- getDescriptor().getMessageTypes().get(9);
+ getDescriptor().getMessageTypes().get(11);
internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_descriptor,
@@ -400,7 +439,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Resources", "NextPageToken", "Unreachable",
});
internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_descriptor =
- getDescriptor().getMessageTypes().get(10);
+ getDescriptor().getMessageTypes().get(12);
internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_descriptor,
@@ -408,7 +447,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name",
});
internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_descriptor =
- getDescriptor().getMessageTypes().get(11);
+ getDescriptor().getMessageTypes().get(13);
internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_descriptor,
@@ -416,7 +455,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Parent", "MembershipId", "Resource",
});
internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_descriptor =
- getDescriptor().getMessageTypes().get(12);
+ getDescriptor().getMessageTypes().get(14);
internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_descriptor,
@@ -424,7 +463,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name",
});
internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_descriptor =
- getDescriptor().getMessageTypes().get(13);
+ getDescriptor().getMessageTypes().get(15);
internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_descriptor,
@@ -432,7 +471,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name", "UpdateMask", "Resource",
});
internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_descriptor =
- getDescriptor().getMessageTypes().get(14);
+ getDescriptor().getMessageTypes().get(16);
internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_descriptor,
@@ -446,7 +485,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"ImagePullSecretContent",
});
internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_descriptor =
- getDescriptor().getMessageTypes().get(15);
+ getDescriptor().getMessageTypes().get(17);
internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_descriptor,
@@ -454,7 +493,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Manifest",
});
internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_descriptor =
- getDescriptor().getMessageTypes().get(16);
+ getDescriptor().getMessageTypes().get(18);
internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_descriptor,
@@ -462,7 +501,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Type", "Manifest",
});
internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_descriptor =
- getDescriptor().getMessageTypes().get(17);
+ getDescriptor().getMessageTypes().get(19);
internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_descriptor,
@@ -470,7 +509,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Manifest", "ClusterScoped",
});
internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_descriptor =
- getDescriptor().getMessageTypes().get(18);
+ getDescriptor().getMessageTypes().get(20);
internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_descriptor,
@@ -478,7 +517,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Kind", "ApiVersion",
});
internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_descriptor =
- getDescriptor().getMessageTypes().get(19);
+ getDescriptor().getMessageTypes().get(21);
internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_descriptor,
@@ -486,7 +525,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Project",
});
internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_descriptor =
- getDescriptor().getMessageTypes().get(20);
+ getDescriptor().getMessageTypes().get(22);
internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_descriptor,
@@ -494,7 +533,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"ServiceIdentity", "WorkloadIdentityPool",
});
internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_descriptor =
- getDescriptor().getMessageTypes().get(21);
+ getDescriptor().getMessageTypes().get(23);
internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_descriptor,
diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudCluster.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudCluster.java
new file mode 100644
index 00000000..18db2f1b
--- /dev/null
+++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudCluster.java
@@ -0,0 +1,755 @@
+/*
+ * 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/gkehub/v1alpha2/membership.proto
+
+package com.google.cloud.gkehub.v1alpha2;
+
+/**
+ *
+ *
+ *
+ * Optional. Specific information for a GKE On-Prem cluster.
+ *
+ *
+ *
+ * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the onPremCluster field is set.
+ */
+ boolean hasOnPremCluster();
+ /**
+ *
+ *
+ *
+ * Optional. Specific information for a GKE On-Prem cluster.
+ *
+ *
+ *
+ * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The onPremCluster.
+ */
+ com.google.cloud.gkehub.v1alpha2.OnPremCluster getOnPremCluster();
+ /**
+ *
+ *
+ *
+ * Optional. Specific information for a GKE On-Prem cluster.
+ *
+ *
+ *
+ * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.gkehub.v1alpha2.OnPremClusterOrBuilder getOnPremClusterOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Optional. Specific information for a GKE Multi-Cloud cluster.
+ *
+ *
+ *
+ * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the multiCloudCluster field is set.
+ */
+ boolean hasMultiCloudCluster();
+ /**
+ *
+ *
+ *
+ * Optional. Specific information for a GKE Multi-Cloud cluster.
+ *
+ *
+ *
+ * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The multiCloudCluster.
+ */
+ com.google.cloud.gkehub.v1alpha2.MultiCloudCluster getMultiCloudCluster();
+ /**
+ *
+ *
+ *
+ * Optional. Specific information for a GKE Multi-Cloud cluster.
+ *
+ *
+ *
+ * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder getMultiCloudClusterOrBuilder();
+
/**
*
*
@@ -163,4 +245,6 @@ public interface MembershipEndpointOrBuilder
*
+ * MultiCloudCluster contains information specific to GKE Multi-Cloud clusters.
+ *
+ *
+ * Protobuf type {@code google.cloud.gkehub.v1alpha2.MultiCloudCluster}
+ */
+public final class MultiCloudCluster extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.MultiCloudCluster)
+ MultiCloudClusterOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use MultiCloudCluster.newBuilder() to construct.
+ private MultiCloudCluster(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private MultiCloudCluster() {
+ resourceLink_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new MultiCloudCluster();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private MultiCloudCluster(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ resourceLink_ = s;
+ break;
+ }
+ case 16:
+ {
+ clusterMissing_ = input.readBool();
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.gkehub.v1alpha2.MembershipProto
+ .internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.gkehub.v1alpha2.MembershipProto
+ .internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.class,
+ com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder.class);
+ }
+
+ public static final int RESOURCE_LINK_FIELD_NUMBER = 1;
+ private volatile java.lang.Object resourceLink_;
+ /**
+ *
+ *
+ *
+ * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
+ * example:
+ * //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/awsClusters/my-cluster
+ * //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/azureClusters/my-cluster
+ *
+ *
+ * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return The resourceLink.
+ */
+ @java.lang.Override
+ public java.lang.String getResourceLink() {
+ java.lang.Object ref = resourceLink_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ resourceLink_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
+ * example:
+ * //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/awsClusters/my-cluster
+ * //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/azureClusters/my-cluster
+ *
+ *
+ * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return The bytes for resourceLink.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getResourceLinkBytes() {
+ java.lang.Object ref = resourceLink_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ resourceLink_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CLUSTER_MISSING_FIELD_NUMBER = 2;
+ private boolean clusterMissing_;
+ /**
+ *
+ *
+ *
+ * Output only. If cluster_missing is set then it denotes that
+ * API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster
+ * no longer exists.
+ *
+ *
+ * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The clusterMissing.
+ */
+ @java.lang.Override
+ public boolean getClusterMissing() {
+ return clusterMissing_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getResourceLinkBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceLink_);
+ }
+ if (clusterMissing_ != false) {
+ output.writeBool(2, clusterMissing_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getResourceLinkBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceLink_);
+ }
+ if (clusterMissing_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, clusterMissing_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.MultiCloudCluster)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.gkehub.v1alpha2.MultiCloudCluster other =
+ (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) obj;
+
+ if (!getResourceLink().equals(other.getResourceLink())) return false;
+ if (getClusterMissing() != other.getClusterMissing()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + RESOURCE_LINK_FIELD_NUMBER;
+ hash = (53 * hash) + getResourceLink().hashCode();
+ hash = (37 * hash) + CLUSTER_MISSING_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClusterMissing());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.MultiCloudCluster prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * MultiCloudCluster contains information specific to GKE Multi-Cloud clusters.
+ *
+ *
+ * Protobuf type {@code google.cloud.gkehub.v1alpha2.MultiCloudCluster}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
+ * example:
+ * //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/awsClusters/my-cluster
+ * //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/azureClusters/my-cluster
+ *
+ *
+ * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return The resourceLink.
+ */
+ public java.lang.String getResourceLink() {
+ java.lang.Object ref = resourceLink_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ resourceLink_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
+ * example:
+ * //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/awsClusters/my-cluster
+ * //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/azureClusters/my-cluster
+ *
+ *
+ * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return The bytes for resourceLink.
+ */
+ public com.google.protobuf.ByteString getResourceLinkBytes() {
+ java.lang.Object ref = resourceLink_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ resourceLink_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
+ * example:
+ * //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/awsClusters/my-cluster
+ * //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/azureClusters/my-cluster
+ *
+ *
+ * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @param value The resourceLink to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResourceLink(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ resourceLink_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
+ * example:
+ * //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/awsClusters/my-cluster
+ * //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/azureClusters/my-cluster
+ *
+ *
+ * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearResourceLink() {
+
+ resourceLink_ = getDefaultInstance().getResourceLink();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
+ * example:
+ * //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/awsClusters/my-cluster
+ * //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/azureClusters/my-cluster
+ *
+ *
+ * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @param value The bytes for resourceLink to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResourceLinkBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ resourceLink_ = value;
+ onChanged();
+ return this;
+ }
+
+ private boolean clusterMissing_;
+ /**
+ *
+ *
+ *
+ * Output only. If cluster_missing is set then it denotes that
+ * API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster
+ * no longer exists.
+ *
+ *
+ * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The clusterMissing.
+ */
+ @java.lang.Override
+ public boolean getClusterMissing() {
+ return clusterMissing_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. If cluster_missing is set then it denotes that
+ * API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster
+ * no longer exists.
+ *
+ *
+ * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The clusterMissing to set.
+ * @return This builder for chaining.
+ */
+ public Builder setClusterMissing(boolean value) {
+
+ clusterMissing_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. If cluster_missing is set then it denotes that
+ * API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster
+ * no longer exists.
+ *
+ *
+ * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearClusterMissing() {
+
+ clusterMissing_ = 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.gkehub.v1alpha2.MultiCloudCluster)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.MultiCloudCluster)
+ private static final com.google.cloud.gkehub.v1alpha2.MultiCloudCluster DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.MultiCloudCluster();
+ }
+
+ public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
+ * example:
+ * //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/awsClusters/my-cluster
+ * //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/azureClusters/my-cluster
+ *
+ *
+ * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return The resourceLink.
+ */
+ java.lang.String getResourceLink();
+ /**
+ *
+ *
+ *
+ * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
+ * example:
+ * //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/awsClusters/my-cluster
+ * //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/azureClusters/my-cluster
+ *
+ *
+ * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return The bytes for resourceLink.
+ */
+ com.google.protobuf.ByteString getResourceLinkBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. If cluster_missing is set then it denotes that
+ * API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster
+ * no longer exists.
+ *
+ *
+ * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The clusterMissing.
+ */
+ boolean getClusterMissing();
+}
diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremCluster.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremCluster.java
new file mode 100644
index 00000000..f1943b50
--- /dev/null
+++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremCluster.java
@@ -0,0 +1,836 @@
+/*
+ * 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/gkehub/v1alpha2/membership.proto
+
+package com.google.cloud.gkehub.v1alpha2;
+
+/**
+ *
+ *
+ *
+ * OnPremCluster contains information specific to GKE On-Prem clusters.
+ *
+ *
+ * Protobuf type {@code google.cloud.gkehub.v1alpha2.OnPremCluster}
+ */
+public final class OnPremCluster extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.OnPremCluster)
+ OnPremClusterOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use OnPremCluster.newBuilder() to construct.
+ private OnPremCluster(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private OnPremCluster() {
+ resourceLink_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new OnPremCluster();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private OnPremCluster(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ resourceLink_ = s;
+ break;
+ }
+ case 16:
+ {
+ clusterMissing_ = input.readBool();
+ break;
+ }
+ case 24:
+ {
+ adminCluster_ = input.readBool();
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.gkehub.v1alpha2.MembershipProto
+ .internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.gkehub.v1alpha2.MembershipProto
+ .internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.gkehub.v1alpha2.OnPremCluster.class,
+ com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder.class);
+ }
+
+ public static final int RESOURCE_LINK_FIELD_NUMBER = 1;
+ private volatile java.lang.Object resourceLink_;
+ /**
+ *
+ *
+ *
+ * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
+ * //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
+ * //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster
+ *
+ *
+ * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return The resourceLink.
+ */
+ @java.lang.Override
+ public java.lang.String getResourceLink() {
+ java.lang.Object ref = resourceLink_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ resourceLink_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
+ * //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
+ * //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster
+ *
+ *
+ * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return The bytes for resourceLink.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getResourceLinkBytes() {
+ java.lang.Object ref = resourceLink_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ resourceLink_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CLUSTER_MISSING_FIELD_NUMBER = 2;
+ private boolean clusterMissing_;
+ /**
+ *
+ *
+ *
+ * Output only. If cluster_missing is set then it denotes that
+ * API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
+ * longer exists.
+ *
+ *
+ * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The clusterMissing.
+ */
+ @java.lang.Override
+ public boolean getClusterMissing() {
+ return clusterMissing_;
+ }
+
+ public static final int ADMIN_CLUSTER_FIELD_NUMBER = 3;
+ private boolean adminCluster_;
+ /**
+ *
+ *
+ *
+ * Immutable. Whether the cluster is an admin cluster.
+ *
+ *
+ * bool admin_cluster = 3 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return The adminCluster.
+ */
+ @java.lang.Override
+ public boolean getAdminCluster() {
+ return adminCluster_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getResourceLinkBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceLink_);
+ }
+ if (clusterMissing_ != false) {
+ output.writeBool(2, clusterMissing_);
+ }
+ if (adminCluster_ != false) {
+ output.writeBool(3, adminCluster_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getResourceLinkBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceLink_);
+ }
+ if (clusterMissing_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, clusterMissing_);
+ }
+ if (adminCluster_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, adminCluster_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.OnPremCluster)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.gkehub.v1alpha2.OnPremCluster other =
+ (com.google.cloud.gkehub.v1alpha2.OnPremCluster) obj;
+
+ if (!getResourceLink().equals(other.getResourceLink())) return false;
+ if (getClusterMissing() != other.getClusterMissing()) return false;
+ if (getAdminCluster() != other.getAdminCluster()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + RESOURCE_LINK_FIELD_NUMBER;
+ hash = (53 * hash) + getResourceLink().hashCode();
+ hash = (37 * hash) + CLUSTER_MISSING_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClusterMissing());
+ hash = (37 * hash) + ADMIN_CLUSTER_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAdminCluster());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.OnPremCluster prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * OnPremCluster contains information specific to GKE On-Prem clusters.
+ *
+ *
+ * Protobuf type {@code google.cloud.gkehub.v1alpha2.OnPremCluster}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
+ * //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
+ * //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster
+ *
+ *
+ * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return The resourceLink.
+ */
+ public java.lang.String getResourceLink() {
+ java.lang.Object ref = resourceLink_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ resourceLink_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
+ * //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
+ * //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster
+ *
+ *
+ * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return The bytes for resourceLink.
+ */
+ public com.google.protobuf.ByteString getResourceLinkBytes() {
+ java.lang.Object ref = resourceLink_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ resourceLink_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
+ * //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
+ * //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster
+ *
+ *
+ * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @param value The resourceLink to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResourceLink(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ resourceLink_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
+ * //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
+ * //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster
+ *
+ *
+ * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearResourceLink() {
+
+ resourceLink_ = getDefaultInstance().getResourceLink();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
+ * //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
+ * //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster
+ *
+ *
+ * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @param value The bytes for resourceLink to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResourceLinkBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ resourceLink_ = value;
+ onChanged();
+ return this;
+ }
+
+ private boolean clusterMissing_;
+ /**
+ *
+ *
+ *
+ * Output only. If cluster_missing is set then it denotes that
+ * API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
+ * longer exists.
+ *
+ *
+ * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The clusterMissing.
+ */
+ @java.lang.Override
+ public boolean getClusterMissing() {
+ return clusterMissing_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. If cluster_missing is set then it denotes that
+ * API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
+ * longer exists.
+ *
+ *
+ * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The clusterMissing to set.
+ * @return This builder for chaining.
+ */
+ public Builder setClusterMissing(boolean value) {
+
+ clusterMissing_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. If cluster_missing is set then it denotes that
+ * API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
+ * longer exists.
+ *
+ *
+ * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearClusterMissing() {
+
+ clusterMissing_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean adminCluster_;
+ /**
+ *
+ *
+ *
+ * Immutable. Whether the cluster is an admin cluster.
+ *
+ *
+ * bool admin_cluster = 3 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return The adminCluster.
+ */
+ @java.lang.Override
+ public boolean getAdminCluster() {
+ return adminCluster_;
+ }
+ /**
+ *
+ *
+ *
+ * Immutable. Whether the cluster is an admin cluster.
+ *
+ *
+ * bool admin_cluster = 3 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @param value The adminCluster to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdminCluster(boolean value) {
+
+ adminCluster_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Immutable. Whether the cluster is an admin cluster.
+ *
+ *
+ * bool admin_cluster = 3 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAdminCluster() {
+
+ adminCluster_ = 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.gkehub.v1alpha2.OnPremCluster)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.OnPremCluster)
+ private static final com.google.cloud.gkehub.v1alpha2.OnPremCluster DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.OnPremCluster();
+ }
+
+ public static com.google.cloud.gkehub.v1alpha2.OnPremCluster getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
+ * //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
+ * //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster
+ *
+ *
+ * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return The resourceLink.
+ */
+ java.lang.String getResourceLink();
+ /**
+ *
+ *
+ *
+ * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
+ * //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
+ * //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster
+ *
+ *
+ * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return The bytes for resourceLink.
+ */
+ com.google.protobuf.ByteString getResourceLinkBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. If cluster_missing is set then it denotes that
+ * API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
+ * longer exists.
+ *
+ *
+ * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The clusterMissing.
+ */
+ boolean getClusterMissing();
+
+ /**
+ *
+ *
+ *
+ * Immutable. Whether the cluster is an admin cluster.
+ *
+ *
+ * bool admin_cluster = 3 [(.google.api.field_behavior) = IMMUTABLE];
+ *
+ * @return The adminCluster.
+ */
+ boolean getAdminCluster();
+}
diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequest.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequest.java
index 45388a76..aa86ec1c 100644
--- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequest.java
+++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequest.java
@@ -254,6 +254,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
* If you are updating a map field, set the value of a key to null or empty
* string to delete the key from the map. It's not possible to update a key's
* value to the empty string.
+ * If you specify the update_mask to be a special path "*", fully replaces all
+ * user-modifiable fields to match `resource`.
*
@@ -276,6 +278,8 @@ public boolean hasResource() {
* If you are updating a map field, set the value of a key to null or empty
* string to delete the key from the map. It's not possible to update a key's
* value to the empty string.
+ * If you specify the update_mask to be a special path "*", fully replaces all
+ * user-modifiable fields to match `resource`.
*
@@ -300,6 +304,8 @@ public com.google.cloud.gkehub.v1alpha2.Membership getResource() {
* If you are updating a map field, set the value of a key to null or empty
* string to delete the key from the map. It's not possible to update a key's
* value to the empty string.
+ * If you specify the update_mask to be a special path "*", fully replaces all
+ * user-modifiable fields to match `resource`.
*
@@ -1005,6 +1011,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
* If you are updating a map field, set the value of a key to null or empty
* string to delete the key from the map. It's not possible to update a key's
* value to the empty string.
+ * If you specify the update_mask to be a special path "*", fully replaces all
+ * user-modifiable fields to match `resource`.
*
@@ -1026,6 +1034,8 @@ public boolean hasResource() {
* If you are updating a map field, set the value of a key to null or empty
* string to delete the key from the map. It's not possible to update a key's
* value to the empty string.
+ * If you specify the update_mask to be a special path "*", fully replaces all
+ * user-modifiable fields to match `resource`.
*
@@ -1053,6 +1063,8 @@ public com.google.cloud.gkehub.v1alpha2.Membership getResource() {
* If you are updating a map field, set the value of a key to null or empty
* string to delete the key from the map. It's not possible to update a key's
* value to the empty string.
+ * If you specify the update_mask to be a special path "*", fully replaces all
+ * user-modifiable fields to match `resource`.
*
@@ -1082,6 +1094,8 @@ public Builder setResource(com.google.cloud.gkehub.v1alpha2.Membership value) {
* If you are updating a map field, set the value of a key to null or empty
* string to delete the key from the map. It's not possible to update a key's
* value to the empty string.
+ * If you specify the update_mask to be a special path "*", fully replaces all
+ * user-modifiable fields to match `resource`.
*
@@ -1109,6 +1123,8 @@ public Builder setResource(
* If you are updating a map field, set the value of a key to null or empty
* string to delete the key from the map. It's not possible to update a key's
* value to the empty string.
+ * If you specify the update_mask to be a special path "*", fully replaces all
+ * user-modifiable fields to match `resource`.
*
*
*
@@ -1142,6 +1158,8 @@ public Builder mergeResource(com.google.cloud.gkehub.v1alpha2.Membership value)
* If you are updating a map field, set the value of a key to null or empty
* string to delete the key from the map. It's not possible to update a key's
* value to the empty string.
+ * If you specify the update_mask to be a special path "*", fully replaces all
+ * user-modifiable fields to match `resource`.
*
*
*
@@ -1169,6 +1187,8 @@ public Builder clearResource() {
* If you are updating a map field, set the value of a key to null or empty
* string to delete the key from the map. It's not possible to update a key's
* value to the empty string.
+ * If you specify the update_mask to be a special path "*", fully replaces all
+ * user-modifiable fields to match `resource`.
*
*
*
@@ -1190,6 +1210,8 @@ public com.google.cloud.gkehub.v1alpha2.Membership.Builder getResourceBuilder()
* If you are updating a map field, set the value of a key to null or empty
* string to delete the key from the map. It's not possible to update a key's
* value to the empty string.
+ * If you specify the update_mask to be a special path "*", fully replaces all
+ * user-modifiable fields to match `resource`.
*
*
*
@@ -1215,6 +1237,8 @@ public com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourceOrBuilder
* If you are updating a map field, set the value of a key to null or empty
* string to delete the key from the map. It's not possible to update a key's
* value to the empty string.
+ * If you specify the update_mask to be a special path "*", fully replaces all
+ * user-modifiable fields to match `resource`.
*
*
*
diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequestOrBuilder.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequestOrBuilder.java
index 5215139d..6e2a6a84 100644
--- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequestOrBuilder.java
+++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequestOrBuilder.java
@@ -98,6 +98,8 @@ public interface UpdateMembershipRequestOrBuilder
* If you are updating a map field, set the value of a key to null or empty
* string to delete the key from the map. It's not possible to update a key's
* value to the empty string.
+ * If you specify the update_mask to be a special path "*", fully replaces all
+ * user-modifiable fields to match `resource`.
*
*
*
@@ -117,6 +119,8 @@ public interface UpdateMembershipRequestOrBuilder
* If you are updating a map field, set the value of a key to null or empty
* string to delete the key from the map. It's not possible to update a key's
* value to the empty string.
+ * If you specify the update_mask to be a special path "*", fully replaces all
+ * user-modifiable fields to match `resource`.
*
*
*
@@ -136,6 +140,8 @@ public interface UpdateMembershipRequestOrBuilder
* If you are updating a map field, set the value of a key to null or empty
* string to delete the key from the map. It's not possible to update a key's
* value to the empty string.
+ * If you specify the update_mask to be a special path "*", fully replaces all
+ * user-modifiable fields to match `resource`.
*
*
*
diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/location/GetLocationRequest.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/location/GetLocationRequest.java
new file mode 100644
index 00000000..6b7c7e0a
--- /dev/null
+++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/location/GetLocationRequest.java
@@ -0,0 +1,634 @@
+/*
+ * 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/location/locations.proto
+
+package com.google.cloud.location;
+
+/**
+ *
+ *
+ *
+ * The request message for [Locations.GetLocation][google.cloud.location.Locations.GetLocation].
+ *
+ *
+ * Protobuf type {@code google.cloud.location.GetLocationRequest}
+ */
+public final class GetLocationRequest extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.location.GetLocationRequest)
+ GetLocationRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GetLocationRequest.newBuilder() to construct.
+ private GetLocationRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private GetLocationRequest() {
+ name_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new GetLocationRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private GetLocationRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ name_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.location.LocationsProto
+ .internal_static_google_cloud_location_GetLocationRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.location.LocationsProto
+ .internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.location.GetLocationRequest.class,
+ com.google.cloud.location.GetLocationRequest.Builder.class);
+ }
+
+ public static final int NAME_FIELD_NUMBER = 1;
+ private volatile java.lang.Object name_;
+ /**
+ *
+ *
+ *
+ * Resource name for the location.
+ *
+ *
+ * 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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Resource name for the location.
+ *
+ *
+ * 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;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.location.GetLocationRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.location.GetLocationRequest other =
+ (com.google.cloud.location.GetLocationRequest) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ 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) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.location.GetLocationRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.location.GetLocationRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.location.GetLocationRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.location.GetLocationRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.location.GetLocationRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.location.GetLocationRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.location.GetLocationRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.location.GetLocationRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.location.GetLocationRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.location.GetLocationRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.location.GetLocationRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.location.GetLocationRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.location.GetLocationRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * The request message for [Locations.GetLocation][google.cloud.location.Locations.GetLocation].
+ *
+ *
+ * Protobuf type {@code google.cloud.location.GetLocationRequest}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Resource name for the location.
+ *
+ *
+ * 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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Resource name for the location.
+ *
+ *
+ * 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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Resource name for the location.
+ *
+ *
+ * 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;
+ }
+ /**
+ *
+ *
+ *
+ * Resource name for the location.
+ *
+ *
+ * string name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Resource name for the location.
+ *
+ *
+ * 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;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.location.GetLocationRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.location.GetLocationRequest)
+ private static final com.google.cloud.location.GetLocationRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.location.GetLocationRequest();
+ }
+
+ public static com.google.cloud.location.GetLocationRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Resource name for the location.
+ *
+ *
+ * string name = 1;
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ *
+ * Resource name for the location.
+ *
+ *
+ * string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+}
diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/location/ListLocationsRequest.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/location/ListLocationsRequest.java
new file mode 100644
index 00000000..e1b3af7f
--- /dev/null
+++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/location/ListLocationsRequest.java
@@ -0,0 +1,1082 @@
+/*
+ * 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/location/locations.proto
+
+package com.google.cloud.location;
+
+/**
+ *
+ *
+ *
+ * The request message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
+ *
+ *
+ * Protobuf type {@code google.cloud.location.ListLocationsRequest}
+ */
+public final class ListLocationsRequest extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.location.ListLocationsRequest)
+ ListLocationsRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ListLocationsRequest.newBuilder() to construct.
+ private ListLocationsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ListLocationsRequest() {
+ name_ = "";
+ filter_ = "";
+ pageToken_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ListLocationsRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private ListLocationsRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ name_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ filter_ = s;
+ break;
+ }
+ case 24:
+ {
+ pageSize_ = input.readInt32();
+ break;
+ }
+ case 34:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ pageToken_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.location.LocationsProto
+ .internal_static_google_cloud_location_ListLocationsRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.location.LocationsProto
+ .internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.location.ListLocationsRequest.class,
+ com.google.cloud.location.ListLocationsRequest.Builder.class);
+ }
+
+ public static final int NAME_FIELD_NUMBER = 1;
+ private volatile java.lang.Object name_;
+ /**
+ *
+ *
+ *
+ * The resource that owns the locations collection, if applicable.
+ *
+ *
+ * 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 that owns the locations collection, if applicable.
+ *
+ *
+ * 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 FILTER_FIELD_NUMBER = 2;
+ private volatile java.lang.Object filter_;
+ /**
+ *
+ *
+ *
+ * The standard list filter.
+ *
+ *
+ * string filter = 2;
+ *
+ * @return The filter.
+ */
+ @java.lang.Override
+ public java.lang.String getFilter() {
+ java.lang.Object ref = filter_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ filter_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The standard list filter.
+ *
+ *
+ * string filter = 2;
+ *
+ * @return The bytes for filter.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getFilterBytes() {
+ java.lang.Object ref = filter_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ filter_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PAGE_SIZE_FIELD_NUMBER = 3;
+ private int pageSize_;
+ /**
+ *
+ *
+ *
+ * The standard list page size.
+ *
+ *
+ * int32 page_size = 3;
+ *
+ * @return The pageSize.
+ */
+ @java.lang.Override
+ public int getPageSize() {
+ return pageSize_;
+ }
+
+ public static final int PAGE_TOKEN_FIELD_NUMBER = 4;
+ private volatile java.lang.Object pageToken_;
+ /**
+ *
+ *
+ *
+ * The standard list page token.
+ *
+ *
+ * string page_token = 4;
+ *
+ * @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 standard list page token.
+ *
+ *
+ * string page_token = 4;
+ *
+ * @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 (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (!getFilterBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_);
+ }
+ if (pageSize_ != 0) {
+ output.writeInt32(3, pageSize_);
+ }
+ if (!getPageTokenBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (!getFilterBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_);
+ }
+ if (pageSize_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_);
+ }
+ if (!getPageTokenBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.location.ListLocationsRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.location.ListLocationsRequest other =
+ (com.google.cloud.location.ListLocationsRequest) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (!getFilter().equals(other.getFilter())) return false;
+ if (getPageSize() != other.getPageSize()) return false;
+ if (!getPageToken().equals(other.getPageToken())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ 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) + FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getFilter().hashCode();
+ hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getPageSize();
+ hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getPageToken().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.location.ListLocationsRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.location.ListLocationsRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.location.ListLocationsRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.location.ListLocationsRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.location.ListLocationsRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.location.ListLocationsRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.location.ListLocationsRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.location.ListLocationsRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.location.ListLocationsRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.location.ListLocationsRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.location.ListLocationsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.location.ListLocationsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.location.ListLocationsRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * The request message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
+ *
+ *
+ * Protobuf type {@code google.cloud.location.ListLocationsRequest}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The resource that owns the locations collection, if applicable.
+ *
+ *
+ * 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 that owns the locations collection, if applicable.
+ *
+ *
+ * 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 that owns the locations collection, if applicable.
+ *
+ *
+ * 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 that owns the locations collection, if applicable.
+ *
+ *
+ * string name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The resource that owns the locations collection, if applicable.
+ *
+ *
+ * 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 filter_ = "";
+ /**
+ *
+ *
+ *
+ * The standard list filter.
+ *
+ *
+ * string filter = 2;
+ *
+ * @return The filter.
+ */
+ public java.lang.String getFilter() {
+ java.lang.Object ref = filter_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ filter_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The standard list filter.
+ *
+ *
+ * string filter = 2;
+ *
+ * @return The bytes for filter.
+ */
+ public com.google.protobuf.ByteString getFilterBytes() {
+ java.lang.Object ref = filter_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ filter_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The standard list filter.
+ *
+ *
+ * string filter = 2;
+ *
+ * @param value The filter to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFilter(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ filter_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The standard list filter.
+ *
+ *
+ * string filter = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFilter() {
+
+ filter_ = getDefaultInstance().getFilter();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The standard list filter.
+ *
+ *
+ * string filter = 2;
+ *
+ * @param value The bytes for filter to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ filter_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int pageSize_;
+ /**
+ *
+ *
+ *
+ * The standard list page size.
+ *
+ *
+ * int32 page_size = 3;
+ *
+ * @return The pageSize.
+ */
+ @java.lang.Override
+ public int getPageSize() {
+ return pageSize_;
+ }
+ /**
+ *
+ *
+ *
+ * The standard list page size.
+ *
+ *
+ * int32 page_size = 3;
+ *
+ * @param value The pageSize to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPageSize(int value) {
+
+ pageSize_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The standard list page size.
+ *
+ *
+ * int32 page_size = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPageSize() {
+
+ pageSize_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object pageToken_ = "";
+ /**
+ *
+ *
+ *
+ * The standard list page token.
+ *
+ *
+ * string page_token = 4;
+ *
+ * @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 standard list page token.
+ *
+ *
+ * string page_token = 4;
+ *
+ * @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 standard list page token.
+ *
+ *
+ * string page_token = 4;
+ *
+ * @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 standard list page token.
+ *
+ *
+ * string page_token = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPageToken() {
+
+ pageToken_ = getDefaultInstance().getPageToken();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The standard list page token.
+ *
+ *
+ * string page_token = 4;
+ *
+ * @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.location.ListLocationsRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.location.ListLocationsRequest)
+ private static final com.google.cloud.location.ListLocationsRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.location.ListLocationsRequest();
+ }
+
+ public static com.google.cloud.location.ListLocationsRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * The resource that owns the locations collection, if applicable.
+ *
+ *
+ * string name = 1;
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ *
+ * The resource that owns the locations collection, if applicable.
+ *
+ *
+ * string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ *
+ * The standard list filter.
+ *
+ *
+ * string filter = 2;
+ *
+ * @return The filter.
+ */
+ java.lang.String getFilter();
+ /**
+ *
+ *
+ *
+ * The standard list filter.
+ *
+ *
+ * string filter = 2;
+ *
+ * @return The bytes for filter.
+ */
+ com.google.protobuf.ByteString getFilterBytes();
+
+ /**
+ *
+ *
+ *
+ * The standard list page size.
+ *
+ *
+ * int32 page_size = 3;
+ *
+ * @return The pageSize.
+ */
+ int getPageSize();
+
+ /**
+ *
+ *
+ *
+ * The standard list page token.
+ *
+ *
+ * string page_token = 4;
+ *
+ * @return The pageToken.
+ */
+ java.lang.String getPageToken();
+ /**
+ *
+ *
+ *
+ * The standard list page token.
+ *
+ *
+ * string page_token = 4;
+ *
+ * @return The bytes for pageToken.
+ */
+ com.google.protobuf.ByteString getPageTokenBytes();
+}
diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/location/ListLocationsResponse.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/location/ListLocationsResponse.java
new file mode 100644
index 00000000..8e7553c0
--- /dev/null
+++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/location/ListLocationsResponse.java
@@ -0,0 +1,1126 @@
+/*
+ * 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/location/locations.proto
+
+package com.google.cloud.location;
+
+/**
+ *
+ *
+ *
+ * The response message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
+ *
+ *
+ * Protobuf type {@code google.cloud.location.ListLocationsResponse}
+ */
+public final class ListLocationsResponse extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.location.ListLocationsResponse)
+ ListLocationsResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ListLocationsResponse.newBuilder() to construct.
+ private ListLocationsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ListLocationsResponse() {
+ locations_ = java.util.Collections.emptyList();
+ nextPageToken_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ListLocationsResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private ListLocationsResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ locations_ = new java.util.ArrayList
+ * A list of locations that matches the specified filter in the request.
+ *
+ *
+ * repeated .google.cloud.location.Location locations = 1;
+ */
+ @java.lang.Override
+ public java.util.List
+ * A list of locations that matches the specified filter in the request.
+ *
+ *
+ * repeated .google.cloud.location.Location locations = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.location.LocationOrBuilder>
+ getLocationsOrBuilderList() {
+ return locations_;
+ }
+ /**
+ *
+ *
+ *
+ * A list of locations that matches the specified filter in the request.
+ *
+ *
+ * repeated .google.cloud.location.Location locations = 1;
+ */
+ @java.lang.Override
+ public int getLocationsCount() {
+ return locations_.size();
+ }
+ /**
+ *
+ *
+ *
+ * A list of locations that matches the specified filter in the request.
+ *
+ *
+ * repeated .google.cloud.location.Location locations = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.location.Location getLocations(int index) {
+ return locations_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * A list of locations that matches the specified filter in the request.
+ *
+ *
+ * repeated .google.cloud.location.Location locations = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder(int index) {
+ return locations_.get(index);
+ }
+
+ public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
+ private volatile java.lang.Object nextPageToken_;
+ /**
+ *
+ *
+ *
+ * The standard List next-page token.
+ *
+ *
+ * string next_page_token = 2;
+ *
+ * @return The nextPageToken.
+ */
+ @java.lang.Override
+ public java.lang.String getNextPageToken() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nextPageToken_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The standard List next-page token.
+ *
+ *
+ * string next_page_token = 2;
+ *
+ * @return The bytes for nextPageToken.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNextPageTokenBytes() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nextPageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < locations_.size(); i++) {
+ output.writeMessage(1, locations_.get(i));
+ }
+ if (!getNextPageTokenBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < locations_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, locations_.get(i));
+ }
+ if (!getNextPageTokenBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.location.ListLocationsResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.location.ListLocationsResponse other =
+ (com.google.cloud.location.ListLocationsResponse) obj;
+
+ if (!getLocationsList().equals(other.getLocationsList())) return false;
+ if (!getNextPageToken().equals(other.getNextPageToken())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getLocationsCount() > 0) {
+ hash = (37 * hash) + LOCATIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getLocationsList().hashCode();
+ }
+ hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getNextPageToken().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.location.ListLocationsResponse parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.location.ListLocationsResponse parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.location.ListLocationsResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.location.ListLocationsResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.location.ListLocationsResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.location.ListLocationsResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.location.ListLocationsResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.location.ListLocationsResponse parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.location.ListLocationsResponse parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.location.ListLocationsResponse parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.location.ListLocationsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.location.ListLocationsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.location.ListLocationsResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * The response message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
+ *
+ *
+ * Protobuf type {@code google.cloud.location.ListLocationsResponse}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * A list of locations that matches the specified filter in the request.
+ *
+ *
+ * repeated .google.cloud.location.Location locations = 1;
+ */
+ public java.util.List
+ * A list of locations that matches the specified filter in the request.
+ *
+ *
+ * repeated .google.cloud.location.Location locations = 1;
+ */
+ public int getLocationsCount() {
+ if (locationsBuilder_ == null) {
+ return locations_.size();
+ } else {
+ return locationsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A list of locations that matches the specified filter in the request.
+ *
+ *
+ * repeated .google.cloud.location.Location locations = 1;
+ */
+ public com.google.cloud.location.Location getLocations(int index) {
+ if (locationsBuilder_ == null) {
+ return locations_.get(index);
+ } else {
+ return locationsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A list of locations that matches the specified filter in the request.
+ *
+ *
+ * repeated .google.cloud.location.Location locations = 1;
+ */
+ public Builder setLocations(int index, com.google.cloud.location.Location value) {
+ if (locationsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLocationsIsMutable();
+ locations_.set(index, value);
+ onChanged();
+ } else {
+ locationsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of locations that matches the specified filter in the request.
+ *
+ *
+ * repeated .google.cloud.location.Location locations = 1;
+ */
+ public Builder setLocations(
+ int index, com.google.cloud.location.Location.Builder builderForValue) {
+ if (locationsBuilder_ == null) {
+ ensureLocationsIsMutable();
+ locations_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ locationsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of locations that matches the specified filter in the request.
+ *
+ *
+ * repeated .google.cloud.location.Location locations = 1;
+ */
+ public Builder addLocations(com.google.cloud.location.Location value) {
+ if (locationsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLocationsIsMutable();
+ locations_.add(value);
+ onChanged();
+ } else {
+ locationsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of locations that matches the specified filter in the request.
+ *
+ *
+ * repeated .google.cloud.location.Location locations = 1;
+ */
+ public Builder addLocations(int index, com.google.cloud.location.Location value) {
+ if (locationsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLocationsIsMutable();
+ locations_.add(index, value);
+ onChanged();
+ } else {
+ locationsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of locations that matches the specified filter in the request.
+ *
+ *
+ * repeated .google.cloud.location.Location locations = 1;
+ */
+ public Builder addLocations(com.google.cloud.location.Location.Builder builderForValue) {
+ if (locationsBuilder_ == null) {
+ ensureLocationsIsMutable();
+ locations_.add(builderForValue.build());
+ onChanged();
+ } else {
+ locationsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of locations that matches the specified filter in the request.
+ *
+ *
+ * repeated .google.cloud.location.Location locations = 1;
+ */
+ public Builder addLocations(
+ int index, com.google.cloud.location.Location.Builder builderForValue) {
+ if (locationsBuilder_ == null) {
+ ensureLocationsIsMutable();
+ locations_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ locationsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of locations that matches the specified filter in the request.
+ *
+ *
+ * repeated .google.cloud.location.Location locations = 1;
+ */
+ public Builder addAllLocations(
+ java.lang.Iterable extends com.google.cloud.location.Location> values) {
+ if (locationsBuilder_ == null) {
+ ensureLocationsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_);
+ onChanged();
+ } else {
+ locationsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of locations that matches the specified filter in the request.
+ *
+ *
+ * repeated .google.cloud.location.Location locations = 1;
+ */
+ public Builder clearLocations() {
+ if (locationsBuilder_ == null) {
+ locations_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ locationsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of locations that matches the specified filter in the request.
+ *
+ *
+ * repeated .google.cloud.location.Location locations = 1;
+ */
+ public Builder removeLocations(int index) {
+ if (locationsBuilder_ == null) {
+ ensureLocationsIsMutable();
+ locations_.remove(index);
+ onChanged();
+ } else {
+ locationsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of locations that matches the specified filter in the request.
+ *
+ *
+ * repeated .google.cloud.location.Location locations = 1;
+ */
+ public com.google.cloud.location.Location.Builder getLocationsBuilder(int index) {
+ return getLocationsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * A list of locations that matches the specified filter in the request.
+ *
+ *
+ * repeated .google.cloud.location.Location locations = 1;
+ */
+ public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder(int index) {
+ if (locationsBuilder_ == null) {
+ return locations_.get(index);
+ } else {
+ return locationsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A list of locations that matches the specified filter in the request.
+ *
+ *
+ * repeated .google.cloud.location.Location locations = 1;
+ */
+ public java.util.List extends com.google.cloud.location.LocationOrBuilder>
+ getLocationsOrBuilderList() {
+ if (locationsBuilder_ != null) {
+ return locationsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(locations_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A list of locations that matches the specified filter in the request.
+ *
+ *
+ * repeated .google.cloud.location.Location locations = 1;
+ */
+ public com.google.cloud.location.Location.Builder addLocationsBuilder() {
+ return getLocationsFieldBuilder()
+ .addBuilder(com.google.cloud.location.Location.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * A list of locations that matches the specified filter in the request.
+ *
+ *
+ * repeated .google.cloud.location.Location locations = 1;
+ */
+ public com.google.cloud.location.Location.Builder addLocationsBuilder(int index) {
+ return getLocationsFieldBuilder()
+ .addBuilder(index, com.google.cloud.location.Location.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * A list of locations that matches the specified filter in the request.
+ *
+ *
+ * repeated .google.cloud.location.Location locations = 1;
+ */
+ public java.util.List
+ * The standard List next-page token.
+ *
+ *
+ * string next_page_token = 2;
+ *
+ * @return The nextPageToken.
+ */
+ public java.lang.String getNextPageToken() {
+ java.lang.Object ref = nextPageToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nextPageToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The standard List next-page token.
+ *
+ *
+ * string next_page_token = 2;
+ *
+ * @return The bytes for nextPageToken.
+ */
+ public com.google.protobuf.ByteString getNextPageTokenBytes() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nextPageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The standard List next-page token.
+ *
+ *
+ * string next_page_token = 2;
+ *
+ * @param value The nextPageToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNextPageToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ nextPageToken_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The standard List next-page token.
+ *
+ *
+ * string next_page_token = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNextPageToken() {
+
+ nextPageToken_ = getDefaultInstance().getNextPageToken();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The standard List next-page token.
+ *
+ *
+ * string next_page_token = 2;
+ *
+ * @param value The bytes for nextPageToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ nextPageToken_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.location.ListLocationsResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.location.ListLocationsResponse)
+ private static final com.google.cloud.location.ListLocationsResponse DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.location.ListLocationsResponse();
+ }
+
+ public static com.google.cloud.location.ListLocationsResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * A list of locations that matches the specified filter in the request.
+ *
+ *
+ * repeated .google.cloud.location.Location locations = 1;
+ */
+ java.util.List
+ * A list of locations that matches the specified filter in the request.
+ *
+ *
+ * repeated .google.cloud.location.Location locations = 1;
+ */
+ com.google.cloud.location.Location getLocations(int index);
+ /**
+ *
+ *
+ *
+ * A list of locations that matches the specified filter in the request.
+ *
+ *
+ * repeated .google.cloud.location.Location locations = 1;
+ */
+ int getLocationsCount();
+ /**
+ *
+ *
+ *
+ * A list of locations that matches the specified filter in the request.
+ *
+ *
+ * repeated .google.cloud.location.Location locations = 1;
+ */
+ java.util.List extends com.google.cloud.location.LocationOrBuilder> getLocationsOrBuilderList();
+ /**
+ *
+ *
+ *
+ * A list of locations that matches the specified filter in the request.
+ *
+ *
+ * repeated .google.cloud.location.Location locations = 1;
+ */
+ com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder(int index);
+
+ /**
+ *
+ *
+ *
+ * The standard List next-page token.
+ *
+ *
+ * string next_page_token = 2;
+ *
+ * @return The nextPageToken.
+ */
+ java.lang.String getNextPageToken();
+ /**
+ *
+ *
+ *
+ * The standard List next-page token.
+ *
+ *
+ * string next_page_token = 2;
+ *
+ * @return The bytes for nextPageToken.
+ */
+ com.google.protobuf.ByteString getNextPageTokenBytes();
+}
diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/location/Location.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/location/Location.java
new file mode 100644
index 00000000..7b7bfc86
--- /dev/null
+++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/location/Location.java
@@ -0,0 +1,1615 @@
+/*
+ * 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/location/locations.proto
+
+package com.google.cloud.location;
+
+/**
+ *
+ *
+ *
+ * A resource that represents Google Cloud Platform location.
+ *
+ *
+ * Protobuf type {@code google.cloud.location.Location}
+ */
+public final class Location extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.location.Location)
+ LocationOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Location.newBuilder() to construct.
+ private Location(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private Location() {
+ name_ = "";
+ locationId_ = "";
+ displayName_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new Location();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Location(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ name_ = s;
+ break;
+ }
+ case 18:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ labels_ =
+ com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000001;
+ }
+ com.google.protobuf.MapEntry
+ * Resource name for the location, which may vary between implementations.
+ * For example: `"projects/example-project/locations/us-east1"`
+ *
+ *
+ * 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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Resource name for the location, which may vary between implementations.
+ * For example: `"projects/example-project/locations/us-east1"`
+ *
+ *
+ * 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 LOCATION_ID_FIELD_NUMBER = 4;
+ private volatile java.lang.Object locationId_;
+ /**
+ *
+ *
+ *
+ * The canonical id for this location. For example: `"us-east1"`.
+ *
+ *
+ * string location_id = 4;
+ *
+ * @return The locationId.
+ */
+ @java.lang.Override
+ public java.lang.String getLocationId() {
+ java.lang.Object ref = locationId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ locationId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The canonical id for this location. For example: `"us-east1"`.
+ *
+ *
+ * string location_id = 4;
+ *
+ * @return The bytes for locationId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getLocationIdBytes() {
+ java.lang.Object ref = locationId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ locationId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DISPLAY_NAME_FIELD_NUMBER = 5;
+ private volatile java.lang.Object displayName_;
+ /**
+ *
+ *
+ *
+ * The friendly name for this location, typically a nearby city name.
+ * For example, "Tokyo".
+ *
+ *
+ * string display_name = 5;
+ *
+ * @return The displayName.
+ */
+ @java.lang.Override
+ public java.lang.String getDisplayName() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ displayName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The friendly name for this location, typically a nearby city name.
+ * For example, "Tokyo".
+ *
+ *
+ * string display_name = 5;
+ *
+ * @return The bytes for displayName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDisplayNameBytes() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ displayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int LABELS_FIELD_NUMBER = 2;
+
+ private static final class LabelsDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry
+ * Cross-service attributes for the location. For example
+ * {"cloud.googleapis.com/region": "us-east1"}
+ *
+ *
+ * map<string, string> labels = 2;
+ */
+ @java.lang.Override
+ public boolean containsLabels(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetLabels().getMap().containsKey(key);
+ }
+ /** Use {@link #getLabelsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
+ * Cross-service attributes for the location. For example
+ * {"cloud.googleapis.com/region": "us-east1"}
+ *
+ *
+ * map<string, string> labels = 2;
+ */
+ @java.lang.Override
+ public java.util.Map
+ * Cross-service attributes for the location. For example
+ * {"cloud.googleapis.com/region": "us-east1"}
+ *
+ *
+ * map<string, string> labels = 2;
+ */
+ @java.lang.Override
+ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map
+ * Cross-service attributes for the location. For example
+ * {"cloud.googleapis.com/region": "us-east1"}
+ *
+ *
+ * map<string, string> labels = 2;
+ */
+ @java.lang.Override
+ public java.lang.String getLabelsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map
+ * Service-specific metadata. For example the available capacity at the given
+ * location.
+ *
+ *
+ * .google.protobuf.Any metadata = 3;
+ *
+ * @return Whether the metadata field is set.
+ */
+ @java.lang.Override
+ public boolean hasMetadata() {
+ return metadata_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Service-specific metadata. For example the available capacity at the given
+ * location.
+ *
+ *
+ * .google.protobuf.Any metadata = 3;
+ *
+ * @return The metadata.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Any getMetadata() {
+ return metadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : metadata_;
+ }
+ /**
+ *
+ *
+ *
+ * Service-specific metadata. For example the available capacity at the given
+ * location.
+ *
+ *
+ * .google.protobuf.Any metadata = 3;
+ */
+ @java.lang.Override
+ public com.google.protobuf.AnyOrBuilder getMetadataOrBuilder() {
+ return getMetadata();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+ output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2);
+ if (metadata_ != null) {
+ output.writeMessage(3, getMetadata());
+ }
+ if (!getLocationIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, locationId_);
+ }
+ if (!getDisplayNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ for (java.util.Map.Entry
+ * A resource that represents Google Cloud Platform location.
+ *
+ *
+ * Protobuf type {@code google.cloud.location.Location}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Resource name for the location, which may vary between implementations.
+ * For example: `"projects/example-project/locations/us-east1"`
+ *
+ *
+ * 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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Resource name for the location, which may vary between implementations.
+ * For example: `"projects/example-project/locations/us-east1"`
+ *
+ *
+ * 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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Resource name for the location, which may vary between implementations.
+ * For example: `"projects/example-project/locations/us-east1"`
+ *
+ *
+ * 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;
+ }
+ /**
+ *
+ *
+ *
+ * Resource name for the location, which may vary between implementations.
+ * For example: `"projects/example-project/locations/us-east1"`
+ *
+ *
+ * string name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Resource name for the location, which may vary between implementations.
+ * For example: `"projects/example-project/locations/us-east1"`
+ *
+ *
+ * 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 locationId_ = "";
+ /**
+ *
+ *
+ *
+ * The canonical id for this location. For example: `"us-east1"`.
+ *
+ *
+ * string location_id = 4;
+ *
+ * @return The locationId.
+ */
+ public java.lang.String getLocationId() {
+ java.lang.Object ref = locationId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ locationId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The canonical id for this location. For example: `"us-east1"`.
+ *
+ *
+ * string location_id = 4;
+ *
+ * @return The bytes for locationId.
+ */
+ public com.google.protobuf.ByteString getLocationIdBytes() {
+ java.lang.Object ref = locationId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ locationId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The canonical id for this location. For example: `"us-east1"`.
+ *
+ *
+ * string location_id = 4;
+ *
+ * @param value The locationId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLocationId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ locationId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The canonical id for this location. For example: `"us-east1"`.
+ *
+ *
+ * string location_id = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLocationId() {
+
+ locationId_ = getDefaultInstance().getLocationId();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The canonical id for this location. For example: `"us-east1"`.
+ *
+ *
+ * string location_id = 4;
+ *
+ * @param value The bytes for locationId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLocationIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ locationId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object displayName_ = "";
+ /**
+ *
+ *
+ *
+ * The friendly name for this location, typically a nearby city name.
+ * For example, "Tokyo".
+ *
+ *
+ * string display_name = 5;
+ *
+ * @return The displayName.
+ */
+ public java.lang.String getDisplayName() {
+ java.lang.Object ref = displayName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ displayName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The friendly name for this location, typically a nearby city name.
+ * For example, "Tokyo".
+ *
+ *
+ * string display_name = 5;
+ *
+ * @return The bytes for displayName.
+ */
+ public com.google.protobuf.ByteString getDisplayNameBytes() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ displayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The friendly name for this location, typically a nearby city name.
+ * For example, "Tokyo".
+ *
+ *
+ * string display_name = 5;
+ *
+ * @param value The displayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDisplayName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ displayName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The friendly name for this location, typically a nearby city name.
+ * For example, "Tokyo".
+ *
+ *
+ * string display_name = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDisplayName() {
+
+ displayName_ = getDefaultInstance().getDisplayName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The friendly name for this location, typically a nearby city name.
+ * For example, "Tokyo".
+ *
+ *
+ * string display_name = 5;
+ *
+ * @param value The bytes for displayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ displayName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField
+ * Cross-service attributes for the location. For example
+ * {"cloud.googleapis.com/region": "us-east1"}
+ *
+ *
+ * map<string, string> labels = 2;
+ */
+ @java.lang.Override
+ public boolean containsLabels(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetLabels().getMap().containsKey(key);
+ }
+ /** Use {@link #getLabelsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
+ * Cross-service attributes for the location. For example
+ * {"cloud.googleapis.com/region": "us-east1"}
+ *
+ *
+ * map<string, string> labels = 2;
+ */
+ @java.lang.Override
+ public java.util.Map
+ * Cross-service attributes for the location. For example
+ * {"cloud.googleapis.com/region": "us-east1"}
+ *
+ *
+ * map<string, string> labels = 2;
+ */
+ @java.lang.Override
+ public java.lang.String getLabelsOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map
+ * Cross-service attributes for the location. For example
+ * {"cloud.googleapis.com/region": "us-east1"}
+ *
+ *
+ * map<string, string> labels = 2;
+ */
+ @java.lang.Override
+ public java.lang.String getLabelsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map
+ * Cross-service attributes for the location. For example
+ * {"cloud.googleapis.com/region": "us-east1"}
+ *
+ *
+ * map<string, string> labels = 2;
+ */
+ public Builder removeLabels(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableLabels().getMutableMap().remove(key);
+ return this;
+ }
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map
+ * Cross-service attributes for the location. For example
+ * {"cloud.googleapis.com/region": "us-east1"}
+ *
+ *
+ * map<string, string> labels = 2;
+ */
+ public Builder putLabels(java.lang.String key, java.lang.String value) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ if (value == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableLabels().getMutableMap().put(key, value);
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Cross-service attributes for the location. For example
+ * {"cloud.googleapis.com/region": "us-east1"}
+ *
+ *
+ * map<string, string> labels = 2;
+ */
+ public Builder putAllLabels(java.util.Map
+ * Service-specific metadata. For example the available capacity at the given
+ * location.
+ *
+ *
+ * .google.protobuf.Any metadata = 3;
+ *
+ * @return Whether the metadata field is set.
+ */
+ public boolean hasMetadata() {
+ return metadataBuilder_ != null || metadata_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Service-specific metadata. For example the available capacity at the given
+ * location.
+ *
+ *
+ * .google.protobuf.Any metadata = 3;
+ *
+ * @return The metadata.
+ */
+ public com.google.protobuf.Any getMetadata() {
+ if (metadataBuilder_ == null) {
+ return metadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : metadata_;
+ } else {
+ return metadataBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Service-specific metadata. For example the available capacity at the given
+ * location.
+ *
+ *
+ * .google.protobuf.Any metadata = 3;
+ */
+ public Builder setMetadata(com.google.protobuf.Any value) {
+ if (metadataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ metadata_ = value;
+ onChanged();
+ } else {
+ metadataBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Service-specific metadata. For example the available capacity at the given
+ * location.
+ *
+ *
+ * .google.protobuf.Any metadata = 3;
+ */
+ public Builder setMetadata(com.google.protobuf.Any.Builder builderForValue) {
+ if (metadataBuilder_ == null) {
+ metadata_ = builderForValue.build();
+ onChanged();
+ } else {
+ metadataBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Service-specific metadata. For example the available capacity at the given
+ * location.
+ *
+ *
+ * .google.protobuf.Any metadata = 3;
+ */
+ public Builder mergeMetadata(com.google.protobuf.Any value) {
+ if (metadataBuilder_ == null) {
+ if (metadata_ != null) {
+ metadata_ = com.google.protobuf.Any.newBuilder(metadata_).mergeFrom(value).buildPartial();
+ } else {
+ metadata_ = value;
+ }
+ onChanged();
+ } else {
+ metadataBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Service-specific metadata. For example the available capacity at the given
+ * location.
+ *
+ *
+ * .google.protobuf.Any metadata = 3;
+ */
+ public Builder clearMetadata() {
+ if (metadataBuilder_ == null) {
+ metadata_ = null;
+ onChanged();
+ } else {
+ metadata_ = null;
+ metadataBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Service-specific metadata. For example the available capacity at the given
+ * location.
+ *
+ *
+ * .google.protobuf.Any metadata = 3;
+ */
+ public com.google.protobuf.Any.Builder getMetadataBuilder() {
+
+ onChanged();
+ return getMetadataFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Service-specific metadata. For example the available capacity at the given
+ * location.
+ *
+ *
+ * .google.protobuf.Any metadata = 3;
+ */
+ public com.google.protobuf.AnyOrBuilder getMetadataOrBuilder() {
+ if (metadataBuilder_ != null) {
+ return metadataBuilder_.getMessageOrBuilder();
+ } else {
+ return metadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : metadata_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Service-specific metadata. For example the available capacity at the given
+ * location.
+ *
+ *
+ * .google.protobuf.Any metadata = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Any,
+ com.google.protobuf.Any.Builder,
+ com.google.protobuf.AnyOrBuilder>
+ getMetadataFieldBuilder() {
+ if (metadataBuilder_ == null) {
+ metadataBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Any,
+ com.google.protobuf.Any.Builder,
+ com.google.protobuf.AnyOrBuilder>(getMetadata(), getParentForChildren(), isClean());
+ metadata_ = null;
+ }
+ return metadataBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.location.Location)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.location.Location)
+ private static final com.google.cloud.location.Location DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.location.Location();
+ }
+
+ public static com.google.cloud.location.Location getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Resource name for the location, which may vary between implementations.
+ * For example: `"projects/example-project/locations/us-east1"`
+ *
+ *
+ * string name = 1;
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ *
+ * Resource name for the location, which may vary between implementations.
+ * For example: `"projects/example-project/locations/us-east1"`
+ *
+ *
+ * string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ *
+ * The canonical id for this location. For example: `"us-east1"`.
+ *
+ *
+ * string location_id = 4;
+ *
+ * @return The locationId.
+ */
+ java.lang.String getLocationId();
+ /**
+ *
+ *
+ *
+ * The canonical id for this location. For example: `"us-east1"`.
+ *
+ *
+ * string location_id = 4;
+ *
+ * @return The bytes for locationId.
+ */
+ com.google.protobuf.ByteString getLocationIdBytes();
+
+ /**
+ *
+ *
+ *
+ * The friendly name for this location, typically a nearby city name.
+ * For example, "Tokyo".
+ *
+ *
+ * string display_name = 5;
+ *
+ * @return The displayName.
+ */
+ java.lang.String getDisplayName();
+ /**
+ *
+ *
+ *
+ * The friendly name for this location, typically a nearby city name.
+ * For example, "Tokyo".
+ *
+ *
+ * string display_name = 5;
+ *
+ * @return The bytes for displayName.
+ */
+ com.google.protobuf.ByteString getDisplayNameBytes();
+
+ /**
+ *
+ *
+ *
+ * Cross-service attributes for the location. For example
+ * {"cloud.googleapis.com/region": "us-east1"}
+ *
+ *
+ * map<string, string> labels = 2;
+ */
+ int getLabelsCount();
+ /**
+ *
+ *
+ *
+ * Cross-service attributes for the location. For example
+ * {"cloud.googleapis.com/region": "us-east1"}
+ *
+ *
+ * map<string, string> labels = 2;
+ */
+ boolean containsLabels(java.lang.String key);
+ /** Use {@link #getLabelsMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map
+ * Cross-service attributes for the location. For example
+ * {"cloud.googleapis.com/region": "us-east1"}
+ *
+ *
+ * map<string, string> labels = 2;
+ */
+ java.util.Map
+ * Cross-service attributes for the location. For example
+ * {"cloud.googleapis.com/region": "us-east1"}
+ *
+ *
+ * map<string, string> labels = 2;
+ */
+ java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+ /**
+ *
+ *
+ *
+ * Cross-service attributes for the location. For example
+ * {"cloud.googleapis.com/region": "us-east1"}
+ *
+ *
+ * map<string, string> labels = 2;
+ */
+ java.lang.String getLabelsOrThrow(java.lang.String key);
+
+ /**
+ *
+ *
+ *
+ * Service-specific metadata. For example the available capacity at the given
+ * location.
+ *
+ *
+ * .google.protobuf.Any metadata = 3;
+ *
+ * @return Whether the metadata field is set.
+ */
+ boolean hasMetadata();
+ /**
+ *
+ *
+ *
+ * Service-specific metadata. For example the available capacity at the given
+ * location.
+ *
+ *
+ * .google.protobuf.Any metadata = 3;
+ *
+ * @return The metadata.
+ */
+ com.google.protobuf.Any getMetadata();
+ /**
+ *
+ *
+ *
+ * Service-specific metadata. For example the available capacity at the given
+ * location.
+ *
+ *
+ * .google.protobuf.Any metadata = 3;
+ */
+ com.google.protobuf.AnyOrBuilder getMetadataOrBuilder();
+}
diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/location/LocationsProto.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/location/LocationsProto.java
new file mode 100644
index 00000000..d2b6da30
--- /dev/null
+++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/location/LocationsProto.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/location/locations.proto
+
+package com.google.cloud.location;
+
+public final class LocationsProto {
+ private LocationsProto() {}
+
+ 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_location_ListLocationsRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_location_ListLocationsResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_location_GetLocationRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_location_Location_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_location_Location_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_location_Location_LabelsEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_location_Location_LabelsEntry_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n%google/cloud/location/locations.proto\022"
+ + "\025google.cloud.location\032\034google/api/annot"
+ + "ations.proto\032\031google/protobuf/any.proto\032"
+ + "\027google/api/client.proto\"[\n\024ListLocation"
+ + "sRequest\022\014\n\004name\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\021"
+ + "\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"d\n"
+ + "\025ListLocationsResponse\0222\n\tlocations\030\001 \003("
+ + "\0132\037.google.cloud.location.Location\022\027\n\017ne"
+ + "xt_page_token\030\002 \001(\t\"\"\n\022GetLocationReques"
+ + "t\022\014\n\004name\030\001 \001(\t\"\327\001\n\010Location\022\014\n\004name\030\001 \001"
+ + "(\t\022\023\n\013location_id\030\004 \001(\t\022\024\n\014display_name\030"
+ + "\005 \001(\t\022;\n\006labels\030\002 \003(\0132+.google.cloud.loc"
+ + "ation.Location.LabelsEntry\022&\n\010metadata\030\003"
+ + " \001(\0132\024.google.protobuf.Any\032-\n\013LabelsEntr"
+ + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\0012\244\003\n\tLo"
+ + "cations\022\253\001\n\rListLocations\022+.google.cloud"
+ + ".location.ListLocationsRequest\032,.google."
+ + "cloud.location.ListLocationsResponse\"?\202\323"
+ + "\344\223\0029\022\024/v1/{name=locations}Z!\022\037/v1/{name="
+ + "projects/*}/locations\022\236\001\n\013GetLocation\022)."
+ + "google.cloud.location.GetLocationRequest"
+ + "\032\037.google.cloud.location.Location\"C\202\323\344\223\002"
+ + "=\022\026/v1/{name=locations/*}Z#\022!/v1/{name=p"
+ + "rojects/*/locations/*}\032H\312A\024cloud.googlea"
+ + "pis.com\322A.https://www.googleapis.com/aut"
+ + "h/cloud-platformBo\n\031com.google.cloud.loc"
+ + "ationB\016LocationsProtoP\001Z=google.golang.o"
+ + "rg/genproto/googleapis/cloud/location;lo"
+ + "cation\370\001\001b\006proto3"
+ };
+ descriptor =
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.AnnotationsProto.getDescriptor(),
+ com.google.protobuf.AnyProto.getDescriptor(),
+ com.google.api.ClientProto.getDescriptor(),
+ });
+ internal_static_google_cloud_location_ListLocationsRequest_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_location_ListLocationsRequest_descriptor,
+ new java.lang.String[] {
+ "Name", "Filter", "PageSize", "PageToken",
+ });
+ internal_static_google_cloud_location_ListLocationsResponse_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_location_ListLocationsResponse_descriptor,
+ new java.lang.String[] {
+ "Locations", "NextPageToken",
+ });
+ internal_static_google_cloud_location_GetLocationRequest_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_location_GetLocationRequest_descriptor,
+ new java.lang.String[] {
+ "Name",
+ });
+ internal_static_google_cloud_location_Location_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_google_cloud_location_Location_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_location_Location_descriptor,
+ new java.lang.String[] {
+ "Name", "LocationId", "DisplayName", "Labels", "Metadata",
+ });
+ internal_static_google_cloud_location_Location_LabelsEntry_descriptor =
+ internal_static_google_cloud_location_Location_descriptor.getNestedTypes().get(0);
+ internal_static_google_cloud_location_Location_LabelsEntry_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_location_Location_LabelsEntry_descriptor,
+ new java.lang.String[] {
+ "Key", "Value",
+ });
+ com.google.protobuf.ExtensionRegistry registry =
+ com.google.protobuf.ExtensionRegistry.newInstance();
+ registry.add(com.google.api.ClientProto.defaultHost);
+ registry.add(com.google.api.AnnotationsProto.http);
+ registry.add(com.google.api.ClientProto.oauthScopes);
+ com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+ descriptor, registry);
+ com.google.api.AnnotationsProto.getDescriptor();
+ com.google.protobuf.AnyProto.getDescriptor();
+ com.google.api.ClientProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/proto/google/cloud/gkehub/v1alpha2/membership.proto b/proto-google-cloud-gkehub-v1alpha2/src/main/proto/google/cloud/gkehub/v1alpha2/membership.proto
index f157b373..00bf8ef3 100644
--- a/proto-google-cloud-gkehub-v1alpha2/src/main/proto/google/cloud/gkehub/v1alpha2/membership.proto
+++ b/proto-google-cloud-gkehub-v1alpha2/src/main/proto/google/cloud/gkehub/v1alpha2/membership.proto
@@ -32,8 +32,14 @@ option java_package = "com.google.cloud.gkehub.v1alpha2";
option php_namespace = "Google\\Cloud\\GkeHub\\V1alpha2";
option ruby_package = "Google::Cloud::GkeHub::V1alpha2";
-// GKE Hub CRUD API for the Membership resource.
-// The Membership service is currently only available in the global location.
+// The GKE Hub service handles the registration of many Kubernetes
+// clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1alpha2.Membership] resource.
+//
+// GKE Hub is currently only available in the global region.
+//
+// **Membership management may be non-trivial:** it is recommended to use one
+// of the Google-provided client libraries or tools where possible when working
+// with Membership resources.
service GkeHub {
option (google.api.default_host) = "gkehub.googleapis.com";
option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
@@ -54,7 +60,11 @@ service GkeHub {
option (google.api.method_signature) = "name";
}
- // Adds a new Membership.
+ // Creates a new Membership.
+ //
+ // **This is currently only supported for GKE clusters on Google Cloud**.
+ // To register other clusters, follow the instructions at
+ // https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
rpc CreateMembership(CreateMembershipRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v1alpha2/{parent=projects/*/locations/*}/memberships"
@@ -68,6 +78,10 @@ service GkeHub {
}
// Removes a Membership.
+ //
+ // **This is currently only supported for GKE clusters on Google Cloud**.
+ // To unregister other clusters, follow the instructions at
+ // https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
rpc DeleteMembership(DeleteMembershipRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
delete: "/v1alpha2/{name=projects/*/locations/*/memberships/*}"
@@ -93,6 +107,9 @@ service GkeHub {
}
// Generates the manifest for deployment of the GKE connect agent.
+ //
+ // **This method is used internally by Google-provided libraries.**
+ // Most clients should not need to call this method directly.
rpc GenerateConnectManifest(GenerateConnectManifestRequest) returns (GenerateConnectManifestResponse) {
option (google.api.http) = {
get: "/v1alpha2/{name=projects/*/locations/*/memberships/*}:generateConnectManifest"
@@ -214,8 +231,17 @@ message Membership {
// MembershipEndpoint contains information needed to contact a Kubernetes API,
// endpoint and any additional Kubernetes metadata.
message MembershipEndpoint {
- // Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
- GkeCluster gke_cluster = 1 [(google.api.field_behavior) = OPTIONAL];
+ // Cluster information of the registered cluster.
+ oneof type {
+ // Optional. Specific information for a GKE-on-GCP cluster.
+ GkeCluster gke_cluster = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specific information for a GKE On-Prem cluster.
+ OnPremCluster on_prem_cluster = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specific information for a GKE Multi-Cloud cluster.
+ MultiCloudCluster multi_cloud_cluster = 5 [(google.api.field_behavior) = OPTIONAL];
+ }
// Output only. Useful Kubernetes-specific metadata.
KubernetesMetadata kubernetes_metadata = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
@@ -289,6 +315,42 @@ message GkeCluster {
//
// Zonal clusters are also supported.
string resource_link = 1 [(google.api.field_behavior) = IMMUTABLE];
+
+ // Output only. If cluster_missing is set then it denotes that the GKE cluster no longer
+ // exists in the GKE Control Plane.
+ bool cluster_missing = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// OnPremCluster contains information specific to GKE On-Prem clusters.
+message OnPremCluster {
+ // Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
+ //
+ // //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
+ // //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster
+ string resource_link = 1 [(google.api.field_behavior) = IMMUTABLE];
+
+ // Output only. If cluster_missing is set then it denotes that
+ // API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
+ // longer exists.
+ bool cluster_missing = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Immutable. Whether the cluster is an admin cluster.
+ bool admin_cluster = 3 [(google.api.field_behavior) = IMMUTABLE];
+}
+
+// MultiCloudCluster contains information specific to GKE Multi-Cloud clusters.
+message MultiCloudCluster {
+ // Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
+ // example:
+ //
+ // //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/awsClusters/my-cluster
+ // //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/azureClusters/my-cluster
+ string resource_link = 1 [(google.api.field_behavior) = IMMUTABLE];
+
+ // Output only. If cluster_missing is set then it denotes that
+ // API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster
+ // no longer exists.
+ bool cluster_missing = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
}
// KubernetesMetadata provides informational metadata for Memberships
@@ -511,6 +573,8 @@ message UpdateMembershipRequest {
// If you are updating a map field, set the value of a key to null or empty
// string to delete the key from the map. It's not possible to update a key's
// value to the empty string.
+ // If you specify the update_mask to be a special path "*", fully replaces all
+ // user-modifiable fields to match `resource`.
Membership resource = 3 [(google.api.field_behavior) = REQUIRED];
}
diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/proto/google/cloud/location/locations.proto b/proto-google-cloud-gkehub-v1alpha2/src/main/proto/google/cloud/location/locations.proto
new file mode 100644
index 00000000..a91766c9
--- /dev/null
+++ b/proto-google-cloud-gkehub-v1alpha2/src/main/proto/google/cloud/location/locations.proto
@@ -0,0 +1,108 @@
+// 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
+//
+// 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.location;
+
+import "google/api/annotations.proto";
+import "google/protobuf/any.proto";
+import "google/api/client.proto";
+
+option cc_enable_arenas = true;
+option go_package = "google.golang.org/genproto/googleapis/cloud/location;location";
+option java_multiple_files = true;
+option java_outer_classname = "LocationsProto";
+option java_package = "com.google.cloud.location";
+
+// An abstract interface that provides location-related information for
+// a service. Service-specific metadata is provided through the
+// [Location.metadata][google.cloud.location.Location.metadata] field.
+service Locations {
+ option (google.api.default_host) = "cloud.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // Lists information about the supported locations for this service.
+ rpc ListLocations(ListLocationsRequest) returns (ListLocationsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{name=locations}"
+ additional_bindings {
+ get: "/v1/{name=projects/*}/locations"
+ }
+ };
+ }
+
+ // Gets information about a location.
+ rpc GetLocation(GetLocationRequest) returns (Location) {
+ option (google.api.http) = {
+ get: "/v1/{name=locations/*}"
+ additional_bindings {
+ get: "/v1/{name=projects/*/locations/*}"
+ }
+ };
+ }
+}
+
+// The request message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
+message ListLocationsRequest {
+ // The resource that owns the locations collection, if applicable.
+ string name = 1;
+
+ // The standard list filter.
+ string filter = 2;
+
+ // The standard list page size.
+ int32 page_size = 3;
+
+ // The standard list page token.
+ string page_token = 4;
+}
+
+// The response message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
+message ListLocationsResponse {
+ // A list of locations that matches the specified filter in the request.
+ repeated Location locations = 1;
+
+ // The standard List next-page token.
+ string next_page_token = 2;
+}
+
+// The request message for [Locations.GetLocation][google.cloud.location.Locations.GetLocation].
+message GetLocationRequest {
+ // Resource name for the location.
+ string name = 1;
+}
+
+// A resource that represents Google Cloud Platform location.
+message Location {
+ // Resource name for the location, which may vary between implementations.
+ // For example: `"projects/example-project/locations/us-east1"`
+ string name = 1;
+
+ // The canonical id for this location. For example: `"us-east1"`.
+ string location_id = 4;
+
+ // The friendly name for this location, typically a nearby city name.
+ // For example, "Tokyo".
+ string display_name = 5;
+
+ // Cross-service attributes for the location. For example
+ //
+ // {"cloud.googleapis.com/region": "us-east1"}
+ map